From 61c2abcdad4aeba6ef7c5f9203887e2606de37b1 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 14:41:17 +0900 Subject: [PATCH] add JavaDoc --- 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 3de3f32..7592145 100644 --- a/app/src/main/java/com/example/childguard/TestService.java +++ b/app/src/main/java/com/example/childguard/TestService.java @@ -67,11 +67,18 @@ public class TestService extends Service { } } + /** + * 通知チャネルが作成されているか確認 + * @return 通知チャンネルの有無 true: 作成済み false: 未作成 + */ private boolean isNotificationChannelCreated() { NotificationManager notificationManager = getSystemService(NotificationManager.class); return notificationManager.getNotificationChannel(CHANNEL_ID) != null; } + /** + * 通知チャネルの作成 + */ private void createNotificationChannel() { int importance = NotificationManager.IMPORTANCE_DEFAULT; NotificationChannel channel = new NotificationChannel(CHANNEL_ID, "通知", importance);