Share
Embed
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.
Transcript
125 slides
-
About Me • Keisuke Kobayashi • GitHub, Qiita: kobakei •
Twitter: kobakei122 • Kyash, Inc. -
"1*MFWFM όʔδϣϯ໊ ίʔυωʔϜ ओͳػೳ *$4 *$4
+FMMZ#FBO ΞΫγϣϯɺελΠϧՃ +FMMZ#FBO +FMMZ#FBO ,JU,BU -PMMJQPQ ϚςϦΞϧσβΠϯɺϩοΫεΫϦʔϯɺ ϔουΞοϓɺελΠϧՃ -PMMJQPQ .BTINBMMPX /PVHBU όϯυϧɺϦϓϥΠɺελΠϧՃ /PVHBU 0SFP νϟϯωϧɺόοδ 0SFP -
"1*MFWFM όʔδϣϯ໊ ίʔυωʔϜ ओͳػೳ *$4 *$4
+FMMZ#FBO ΞΫγϣϯɺελΠϧՃ +FMMZ#FBO +FMMZ#FBO ,JU,BU -PMMJQPQ ϚςϦΞϧσβΠϯɺϩοΫεΫϦʔϯɺ ϔουΞοϓɺελΠϧՃ -PMMJQPQ .BTINBMMPX /PVHBU όϯυϧɺϦϓϥΠɺελΠϧՃ /PVHBU 0SFP νϟϯωϧɺόοδ 0SFP -
"1*MFWFM όʔδϣϯ໊ ίʔυωʔϜ ओͳػೳ *$4 *$4
+FMMZ#FBO ΞΫγϣϯɺελΠϧՃ +FMMZ#FBO +FMMZ#FBO ,JU,BU -PMMJQPQ ϚςϦΞϧσβΠϯɺϩοΫεΫϦʔϯɺ ϔουΞοϓɺελΠϧՃ -PMMJQPQ .BTINBMMPX /PVHBU όϯυϧɺϦϓϥΠɺελΠϧՃ /PVHBU 0SFP νϟϯωϧɺόοδ 0SFP -
"1*MFWFM όʔδϣϯ໊ ίʔυωʔϜ ओͳػೳ *$4 *$4
+FMMZ#FBO ΞΫγϣϯɺελΠϧՃ +FMMZ#FBO +FMMZ#FBO ,JU,BU -PMMJQPQ ϚςϦΞϧσβΠϯɺϩοΫεΫϦʔϯɺ ϔουΞοϓɺελΠϧՃ -PMMJQPQ .BTINBMMPX /PVHBU όϯυϧɺϦϓϥΠɺελΠϧՃ /PVHBU 0SFP νϟϯωϧɺόοδ 0SFP -
"1*MFWFM όʔδϣϯ໊ ίʔυωʔϜ ओͳػೳ *$4 *$4
+FMMZ#FBO ΞΫγϣϯɺελΠϧՃ +FMMZ#FBO +FMMZ#FBO ,JU,BU -PMMJQPQ ϚςϦΞϧσβΠϯɺϩοΫεΫϦʔϯɺ ϔουΞοϓɺελΠϧՃ -PMMJQPQ .BTINBMMPX /PVHBU όϯυϧɺϦϓϥΠɺελΠϧՃ /PVHBU 0SFP νϟϯωϧɺόοδ 0SFP -
Small icon • എܠಁա & നృΓ • ΨΠυϥΠϯ௨Γʹ࡞͍ͬͯΕͳ͍ • https://developer.android.com/guide/practices/
ui_guidelines/icon_design_status_bar.html • ϥϯνϟʔΞΠίϯΛͦͷ··͍ͬͯΔ߹ɺ API 21Ҏ߱ͰനృΓʹͳΔͷͰҙ -
γϯϓϧͳ࣮ val notification = NotificationCompat.Builder(context, CH_ID_NORMAL) .setContentTitle("This is title") .setContentText("This
is message") .setSmallIcon(R.drawable.ic_notification) .build() val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notification) -
΄΅ඞਢ • color • defaults • pending intent • auto
cancel • ticker (※Android 4.4·ͰͰ༻) -
ݱ࣮తͳ࣮ val intent = Intent(context, MainActivity::class.java) val pendingIntent = PendingIntent.getActivity(context,
0, intent, PendingIntent.FLAG_UPDATE_CURRENT) val notification = NotificationCompat.Builder(context, CHANNEL_ID_NORMAL) .setContentTitle("This is title") .setContentText("This is message") .setTicker("This is ticker") // for legacy Android .setSmallIcon(R.drawable.ic_notification) .setColor(ContextCompat.getColor(context, R.color.colorPrimary)) .setDefaults(Notification.DEFAULT_ALL) .setContentIntent(pendingIntent) .setAutoCancel(true) .build() val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notification) -
Actionͷҙࣄ߲ • ICSͰ͑ͳ͍ʢAPI 16Ҏ߱ͷΈʣ • ΞΠίϯΕͣʹઃఆ͠Α͏ • API 16~19: Χϥʔදࣔ
• API 21~23: άϨʔදࣔ • API 24~: ΞΠίϯදࣔͳ͠ • SVG͑ͳ͍ͷͰҙ -
Action val notification = NotificationCompat.Builder(context, CHANNEL_ID_NORMAL) ... .setContentIntent(pendingIntent) .addAction(R.drawable.ic_action_done, "Done",
donePendingIntent) .addAction(R.drawable.ic_action_close, "Close", closePendingIntent) .setAutoCancel(true) .build() val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notification) -
Direct Reply val action = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val remoteInput = RemoteInput.Builder(KEY_REMOTE_INPUT) .setLabel("Reply Label") .build() val replyIntent = Intent(context, MyBroadcastReceiver::class.java) val replyPendingIntent = PendingIntent.getBroadcast(context, 1001, replyIntent, PendingIntent.FLAG_UPDATE_CURRENT) NotificationCompat.Action.Builder(R.drawable.ic_action_reply, "Reply", replyPendingIntent) .addRemoteInput(remoteInput) .build() } else { NotificationCompat.Action.Builder(R.drawable.ic_action_reply, "Reply", pendingIntent) .build() } -
Direct Reply val action = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val remoteInput = RemoteInput.Builder(KEY_REMOTE_INPUT) .setLabel("Reply Label") .build() val replyIntent = Intent(context, MyBroadcastReceiver::class.java) val replyPendingIntent = PendingIntent.getBroadcast(context, 1001, replyIntent, PendingIntent.FLAG_UPDATE_CURRENT) NotificationCompat.Action.Builder(R.drawable.ic_action_reply, "Reply", replyPendingIntent) .addRemoteInput(remoteInput) .build() } else { NotificationCompat.Action.Builder(R.drawable.ic_action_reply, "Reply", pendingIntent) .build() } API levelͰذ -
Direct Reply val action = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val remoteInput = RemoteInput.Builder(KEY_REMOTE_INPUT) .setLabel("Reply Label") .build() val replyIntent = Intent(context, MyBroadcastReceiver::class.java) val replyPendingIntent = PendingIntent.getBroadcast(context, 1001, replyIntent, PendingIntent.FLAG_UPDATE_CURRENT) NotificationCompat.Action.Builder(R.drawable.ic_action_reply, "Reply", replyPendingIntent) .addRemoteInput(remoteInput) .build() } else { NotificationCompat.Action.Builder(R.drawable.ic_action_reply, "Reply", pendingIntent) .build() } RemoteInput࡞ -
Direct Reply val action = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val remoteInput = RemoteInput.Builder(KEY_REMOTE_INPUT) .setLabel("Reply Label") .build() val replyIntent = Intent(context, MyBroadcastReceiver::class.java) val replyPendingIntent = PendingIntent.getBroadcast(context, 1001, replyIntent, PendingIntent.FLAG_UPDATE_CURRENT) NotificationCompat.Action.Builder(R.drawable.ic_action_reply, "Reply", replyPendingIntent) .addRemoteInput(remoteInput) .build() } else { NotificationCompat.Action.Builder(R.drawable.ic_action_reply, "Reply", pendingIntent) .build() } Reply࣌ͷIntent -
Direct Reply val action = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val remoteInput = RemoteInput.Builder(KEY_REMOTE_INPUT) .setLabel("Reply Label") .build() val replyIntent = Intent(context, MyBroadcastReceiver::class.java) val replyPendingIntent = PendingIntent.getBroadcast(context, 1001, replyIntent, PendingIntent.FLAG_UPDATE_CURRENT) NotificationCompat.Action.Builder(R.drawable.ic_action_reply, "Reply", replyPendingIntent) .addRemoteInput(remoteInput) .build() } else { NotificationCompat.Action.Builder(R.drawable.ic_action_reply, "Reply", pendingIntent) .build() } Action࡞ -
Direct Reply val action = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val remoteInput = RemoteInput.Builder(KEY_REMOTE_INPUT) .setLabel("Reply Label") .build() val replyIntent = Intent(context, MyBroadcastReceiver::class.java) val replyPendingIntent = PendingIntent.getBroadcast(context, 1001, replyIntent, PendingIntent.FLAG_UPDATE_CURRENT) NotificationCompat.Action.Builder(R.drawable.ic_action_reply, "Reply", replyPendingIntent) .addRemoteInput(remoteInput) .build() } else { NotificationCompat.Action.Builder(R.drawable.ic_action_reply, "Reply", pendingIntent) .build() } API 23ҎԼ༻ͷී௨ͷAction -
Direct Reply val notification = NotificationCompat.Builder(context, CHANNEL_ID_NORMAL) ... .addAction(action) .build()
val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notification) -
Style • API 16~ • BigTextStyle • BigPictureStyle • InboxStyle
• API 21~ • MediaStyle • API 24~ • DecoratedCustomViewStyle • DecoratedMediaCustomViewStyle • MessagingStyle -
Style • API 16~ • BigTextStyle • BigPictureStyle • InboxStyle
• API 21~ • MediaStyle • API 24~ • DecoratedCustomViewStyle • DecoratedMediaCustomViewStyle • MessagingStyle ࠷සग़ɻೋߦҎ্ͷςΩετͰ༻ -
Style • API 16~ • BigTextStyle • BigPictureStyle • InboxStyle
• API 21~ • MediaStyle • API 24~ • DecoratedCustomViewStyle • DecoratedMediaCustomViewStyle • MessagingStyle ը૾ܥΞϓϦͰ༻ -
Style • API 16~ • BigTextStyle • BigPictureStyle • InboxStyle
• API 21~ • MediaStyle • API 24~ • DecoratedCustomViewStyle • DecoratedMediaCustomViewStyle • MessagingStyle ԻָɾಈըܥΞϓϦͰ༻ com.android.support-media-compat -
Style • API 16~ • BigTextStyle • BigPictureStyle • InboxStyle
• API 21~ • MediaStyle • API 24~ • DecoratedCustomViewStyle • DecoratedMediaCustomViewStyle • MessagingStyle ௨ϏϡʔΛΧελϚΠζ ͢Δ࣌ʹ༻ʢ͋ͱͰઆ໌ʣ -
Style • API 16~ • BigTextStyle • BigPictureStyle • InboxStyle
• API 21~ • MediaStyle • API 24~ • DecoratedCustomViewStyle • DecoratedMediaCustomViewStyle • MessagingStyle ϝοηʔδܥΞϓϦͰ༻ ʢޙͰઆ໌͠·͢ʣ -
Big Text Style࣮ val style = NotificationCompat.BigTextStyle() .setBigContentTitle("Big content title")
.setSummaryText("Big text summary") .bigText("This is long text. This is long text. This is long text. This is long text. This is long text.") val notification = NotificationCompat.Builder(context, CHANNEL_ID_NORMAL) .setContentTitle("This is title") .setContentText("This is message") .setTicker("This is ticker") // for legacy Android .setStyle(style) ... .build() val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notification) -
Big Text Style࣮ val style = NotificationCompat.BigTextStyle() .setBigContentTitle("Big content title")
.setSummaryText("Big text summary") .bigText("This is long text. This is long text. This is long text. This is long text. This is long text.") val notification = NotificationCompat.Builder(context, CHANNEL_ID_NORMAL) .setContentTitle("This is title") .setContentText("This is message") .setTicker("This is ticker") // for legacy Android .setStyle(style) ... .build() val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notification) StyleͷΠϯελϯε࡞ -
Big Text Style࣮ val style = NotificationCompat.BigTextStyle() .setBigContentTitle("Big content title")
.setSummaryText("Big text summary") .bigText("This is long text. This is long text. This is long text. This is long text. This is long text.") val notification = NotificationCompat.Builder(context, CHANNEL_ID_NORMAL) .setContentTitle("This is title") .setContentText("This is message") .setTicker("This is ticker") // for legacy Android .setStyle(style) ... .build() val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notification) -
val customView = RemoteViews(context.packageName, R.layout.custom_layout) val notificationBuilder = NotificationCompat.Builder(context, CHANNEL_ID_NORMAL)
... .setContent(customView) val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notificationBuilder.build()) Notification.Builder#setContent -
val customView = RemoteViews(context.packageName, R.layout.custom_layout) val notificationBuilder = NotificationCompat.Builder(context, CHANNEL_ID_NORMAL)
... .setContent(customView) val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notificationBuilder.build()) Notification.Builder#setContent RemoteViews࡞ -
val customView = RemoteViews(context.packageName, R.layout.custom_layout) val notificationBuilder = NotificationCompat.Builder(context, CHANNEL_ID_NORMAL)
... .setContent(customView) val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notificationBuilder.build()) Notification.Builder#setContent -
RemoteViews • ଞϓϩηεͷϏϡʔͷ֊ߏΛද͢Ϋϥε • ViewͷαϒΫϥεͰͳ͍ • findViewByIdͰchild viewʹΞΫηεͰ͖ͳ ͍ •
RemoteViews#setString(viewId, methodName, value) ͳͲͰૢ࡞͢Δ -
DecoratedCustomViewStyle • API 24Ҏ߱ • RemoteViewsΛɺΞΠίϯɺλΠτϧͳͲ ඪ४ͷཁૉͰϥοϓ͢ΔελΠϧ • ޙํޓੑ͋Γ •
NotificationCompat.DecoratedCustomViewStyle -
DecoratedCustomViewStyle val customView = RemoteViews(context.packageName, R.layout.custom_layout) val notificationBuilder = NotificationCompat.Builder(context,
CHANNEL_ID_NORMAL) ... .setCustomContentView(customView) .setStyle(NotificationCompat.DecoratedCustomViewStyle()) val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notification) -
DecoratedCustomViewStyle val customView = RemoteViews(context.packageName, R.layout.custom_layout) val notificationBuilder = NotificationCompat.Builder(context,
CHANNEL_ID_NORMAL) ... .setCustomContentView(customView) .setStyle(NotificationCompat.DecoratedCustomViewStyle()) val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notification) -
Colorized • ਐߦதͷॏཁͳ௨ʹͷΈɺഎܠ৭Λ͚Δ͜ͱ͕Ͱ͖Δ • ௨தɺΧʔφϏͳͲ • Foreground ServiceͱηοτͰ͏ • ςΩετΧϥʔഎܠ৭͔ΒࣗಈͰܾ·ΔʢઃఆෆՄʣ
• BLACK or WHITE • ίϯτϥετΛߟྀͨ͠എܠ৭Λઃఆ͢Δ͜ͱ • API 26Ҏ߱ -
Colorized fun createColorizedNotification(service: Service): Notification { val context = service.applicationContext
val intent = Intent(context, MainActivity::class.java) val pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT) return NotificationCompat.Builder(context, CHANNEL_ID_NORMAL) ... .setColor(Color.DKGRAY) .setColorized(true) .setPriority(Notification.PRIORITY_HIGH) .build() } Colorized༗ޮԽ -
Colorized: Service class SampleForegroundService : IntentService("sample") { override fun onHandleIntent(intent:
Intent?) { startForeground(1, createColorizedNotification(this)) // do something... } } ForegroundϞʔυʹೖͬͯ ௨Λදࣔ -
௨νϟϯωϧ • API 26Ҏ߱ • Ϣʔβʔ͕௨OFFɺԻɾόΠϒઃఆͳͲΛ Γସ͑ΒΕΔ • targetSdkVersion=26Ҏ্ͰରԠඞਢ •
࣮ࣗͰAPI levelͰذΛॻ͘ -
௨νϟϯωϧͷ࡞ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { val channel1 = NotificationChannel(CHANNEL_ID_NORMAL,
"ී௨ͷνϟϯωϧ", NotificationManager.IMPORTANCE_DEFAULT) val channel2 = NotificationChannel(CHANNEL_ID_IMPORTANT, "ॏཁͳνϟϯω ϧ", NotificationManager.IMPORTANCE_HIGH) val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.createNotificationChannel(channel1) nm.createNotificationChannel(channel2) } -
௨νϟϯωϧͷ࡞ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { val channel1 = NotificationChannel(CHANNEL_ID_NORMAL,
"ී௨ͷνϟϯωϧ", NotificationManager.IMPORTANCE_DEFAULT) val channel2 = NotificationChannel(CHANNEL_ID_IMPORTANT, "ॏཁͳνϟϯω ϧ", NotificationManager.IMPORTANCE_HIGH) val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.createNotificationChannel(channel1) nm.createNotificationChannel(channel2) } API 26Ҏ߱ͷΈ࣮ߦ -
௨νϟϯωϧͷ࡞ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { val channel1 = NotificationChannel(CHANNEL_ID_NORMAL,
"ී௨ͷνϟϯωϧ", NotificationManager.IMPORTANCE_DEFAULT) val channel2 = NotificationChannel(CHANNEL_ID_IMPORTANT, "ॏཁͳνϟϯω ϧ", NotificationManager.IMPORTANCE_HIGH) val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.createNotificationChannel(channel1) nm.createNotificationChannel(channel2) } -
௨νϟϯωϧͷ࡞ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { val channel1 = NotificationChannel(CHANNEL_ID_NORMAL,
"ී௨ͷνϟϯωϧ", NotificationManager.IMPORTANCE_DEFAULT) val channel2 = NotificationChannel(CHANNEL_ID_IMPORTANT, "ॏཁͳνϟϯω ϧ", NotificationManager.IMPORTANCE_HIGH) val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.createNotificationChannel(channel1) nm.createNotificationChannel(channel2) } IDॱͰιʔτ͞ΕΔ -
௨νϟϯωϧͷ࡞ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { val channel1 = NotificationChannel(CHANNEL_ID_NORMAL,
"ී௨ͷνϟϯωϧ", NotificationManager.IMPORTANCE_DEFAULT) val channel2 = NotificationChannel(CHANNEL_ID_IMPORTANT, "ॏཁͳνϟϯω ϧ", NotificationManager.IMPORTANCE_HIGH) val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.createNotificationChannel(channel1) nm.createNotificationChannel(channel2) } -
௨νϟϯωϧͷࢦఆ val notification = NotificationCompat.Builder(context, CH_ID_NORMAL) .setContentTitle("This is title") .setContentText("This
is message") .setSmallIcon(R.drawable.ic_notification) .build() val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notification) νϟϯωϧIDΛࢦఆ -
ϝλσʔλ • ௨ʹඥͮ͘ϝλσʔλɻ௨ͷදࣔॱংʹӨڹ ͢Δ • setPriority • setCategory • addPerson
• API 26͔Β௨νϟϯωϧ͕ΘΕΔ -
ϔουΞοϓ • API 21Ҏ߱ • ΞϓϦʹ͔Ϳͤͯදࣔ͞ΕΔɺ༏ઌͷߴ͍௨ • දࣔϩδοΫ͕όʔδϣϯ͝ͱʹҧ͏ • API
21 ~ 25 • ௨ͷpriority • API 26~ • ௨νϟϯωϧͷઃఆ -
ϔουΞοϓ࣮ val notification = NotificationCompat.Builder(context, CHANNEL_ID_IMPORTANT) ... .setPriority(Notification.PRIORITY_HIGH) .build() val
nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notification) API 26Ҏ߱ API 25ҎԼ -
PublicʢϩοΫը໘༻ʣ val publicNotification = NotificationCompat.Builder(context, CHANNEL_ID_NORMAL) .setContentTitle("This is public title")
.setContentText("This is public message") ... .build() -
PrivateʢඇϩοΫ࣌༻ʣ val notification = NotificationCompat.Builder(context, CHANNEL_ID_NORMAL) .setContentTitle("This is private title")
.setContentText("This is private message") ... .setVisibility(NotificationCompat.VISIBILITY_PRIVATE) .setPublicVersion(publicNotification) .build() val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager nm.notify(1, notification) -
αϚϦʔ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { val summaryNotification = NotificationCompat.Builder(context,
CHANNEL_ID_NORMAL) ... .setGroupSummary(true) .setGroup(GROUP_KEY) .setAutoCancel(true) .build() nm.notify(1, summaryNotification) } -
αϚϦʔ API 24Ҏ߱ͰͷΈදࣔ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { val summaryNotification
= NotificationCompat.Builder(context, CHANNEL_ID_NORMAL) ... .setGroupSummary(true) .setGroup(GROUP_KEY) .setAutoCancel(true) .build() nm.notify(1, summaryNotification) } -
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { val summaryNotification = NotificationCompat.Builder(context, CHANNEL_ID_NORMAL)
... .setGroupSummary(true) .setGroup(GROUP_KEY) .setAutoCancel(true) .build() nm.notify(1, summaryNotification) } αϚϦʔ -
ݸผͷ௨ // ֤௨લόʔδϣϯڞ௨Ͱग़͢ val notification1 = NotificationCompat.Builder(context, CHANNEL_ID_NORMAL) .setGroup(GROUP_KEY) .setContentTitle("This
is title 1") .setContentText("This is message 1") ... .build() val notification2 = ... nm.notify(2, notification1) nm.notify(2, notification2) -
ϝοηʔδͬΆ͍Style • Inbox style (API 16~) • Messaging style (API
24~) • όϯυϧ௨ (API 24~) • ݁ہͲΕΛ͍͍͑ͷʁ