JavaDoc追加

This commit is contained in:
ろむねこ 2024-07-11 15:06:24 +09:00
parent 131fdf7d87
commit 1d01e217b6
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -138,6 +138,13 @@ public class TestService extends Service {
Log.d(TAG, "DocumentSnapshot successfully updated!")).addOnFailureListener(e -> Log.w(TAG, "Error updating document", e)); Log.d(TAG, "DocumentSnapshot successfully updated!")).addOnFailureListener(e -> Log.w(TAG, "Error updating document", e));
} }
/**
* 通知をタップしたときにアプリを起動するPendingIntentを取得
* @param context コンテキスト
* @param requestCode リクエストコード
* @param flags フラグ
* @return PendingIntent
*/
private PendingIntent getPendingIntent(Context context, int requestCode, int flags) { private PendingIntent getPendingIntent(Context context, int requestCode, int flags) {
Intent intent = new Intent(context, MainActivity.class); Intent intent = new Intent(context, MainActivity.class);
intent.setAction("OPEN_ACTIVITY"); intent.setAction("OPEN_ACTIVITY");