JavaDoc追加

This commit is contained in:
r-ca committed 2024-07-11 15:06:24 +09:00
1 parent 131fdf7d87
commit 1d01e217b6
1 file changed
+7
@@ -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");