From 1d01e217b61af5431e2466440043607b239c3c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 11 Jul 2024 15:06:24 +0900 Subject: [PATCH] =?UTF-8?q?JavaDoc=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/example/childguard/TestService.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/com/example/childguard/TestService.java b/app/src/main/java/com/example/childguard/TestService.java index 11614a4..337c98d 100644 --- a/app/src/main/java/com/example/childguard/TestService.java +++ b/app/src/main/java/com/example/childguard/TestService.java @@ -138,6 +138,13 @@ public class TestService extends Service { 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) { Intent intent = new Intent(context, MainActivity.class); intent.setAction("OPEN_ACTIVITY");