Notification for Android O

Notification for Android O

Shibuya.apk # 15 : Report from Google I/O 2017の発表資料です

参考動画
Notifications UX: What's New for Android O
https://www.youtube.com/watch?v=vwZi56I0Mi0

What's New in Notifications, Launcher Icons, and Shortcuts
https://www.youtube.com/watch?v=TB-K6OniF68

参考になるコード
https://github.com/googlesamples/android-NotificationChannels

5a4908a5ed09f9f838bd79478f5b5b32?s=128

matsujun

June 02, 2017
Tweet

Transcript

  1. /PUJpDBUJPOGPS"OESPJE0 +VOZB.BUTVZBNB 4IJCVZBBQL3FQPSUGSPN(PPHMF*0
 !(PPHMF+BQBO

  2. ର৅ηογϣϯ w /PUJpDBUJPOT698IBUT/FXGPS"OESPJE0 w IUUQTXXXZPVUVCFDPNXBUDI WWX;J*.J w 8IBUT/FXJO/PUJpDBUJPOT -BVODIFS*DPOT 

    BOE4IPSUDVUT w IUUQTXXXZPVUVCFDPNXBUDI W5#,0OJ'
  3. 3FTFBSDI

  4. 69QFEJUJPO w 0Ͱͷ௨஌ͷػೳվળʹ͋ͨΓɺ(PPHMFࣾһ͕߹॓
 w ࣌ظ w ೥݄ʹिؒ w ϝϯόʔ w

    σβΠφʔɺΤϯδχΞɺ1. w ৔ॴ w /FX:PSL /FX+FSTFZ w ಺༰ w ΠϯλϏϡʔɺ൒೔ʙ೔ͷߦಈ؍࡯ɺάϧʔϓσΟεΧογϣ ϯɺ৘ใͷ౷߹
  5. ,OPXMFEHF w Ϣʔβʔͷ੠ w ඵͱܞଳ͔Β཭ΕΒΕͳ͍ɻා͍ɻԿ͔ݟམͱͨ͠ΒͲ͏͠Α ͏ʁʂ w ྆਌ͱ͔લͷ෉ͱ͔ଉࢠͷֶߍʹ͍ͭͯͷ"NCFS"MFSUΈ͍ͨ ͳ΋ͷ͕͋Ε͹ɺԿΑΓ΋༏ઌ͢Δɻ w

    4/4ΞϓϦ͕ΊͬͪΌ௨஌ૹͬͯ͘Δ͔ΒΞϓϦΛফͨ͠ɻ w ஌ݟ w Ϣʔβʔ͸શͯͷ௨஌͕ཉ͍͠Θ͚Ͱ͸ͳ͍ w ଟ͘ͷਓ͸ɺઃఆ͔Β੍ޚͰ͖ΔͷΛ஌ͬͯͯ΋΍Βͳ͍ w ΊΜͲ͍͘͞ɺ΍Γํ͕෼͔Βͳ͍

  6. ,OPXMFEHF w Ϣʔβʔͷ੠ w ௨஌͸ΰϛϝʔϧΈ͍ͨͩɻϑΟϧλΛ࡞ͬͨΓ࡟আͨ͠ΓͰ͖Δɻͦ͏ͯ͠Δɻ w ઃఆ͔Βௐ੔Ͱ͖Δͷ͸஌ͬͯΔ͚ͲɺͲ͏΍Ε͹͍͍͔෼͔Βͳ͍ɻ w ଞͷਓ͔Βͷ௨஌͸࠷ॏཁɻΘͨ͠͸ඞͣฦ৴͢Δɻ w

    ࢓ࣄͷϝʔϧͱ࠺͔Βͷϝοηʔδ͚ͩؾʹͯ͠Δɻ w ࣌ʑɺ΍Βͳ͖Ό͍͚ͳ͍͜ͱͷ௨஌Λड͚औΔΜ͚ͩͲͪΐͬͱλΠϛϯά͕ѱ ͍ͱɺ௨஌͸΋͏དྷͳ͍͔Β΍ΔͷΛ๨Εͯ͠·͏ w υϥΠΫϦʔχϯάͷडऔʹߦ͔ͳ͍ͱ͍͚ͳ͍ͷ͸஌ͬͯΔɻͰ΋ࠓݴΘΕͯ΋ʜ ͓ళͷۙ͘Ͱݴͬͯʂ w ஌ݟ w ਓʑ͕ཉ͍ͯ͠Δ௨஌͸λΠϓ w ਓؔ܎ʢ4.4ɺϝοηϯδϟʔɺϝʔϧɺి࿩FUDʣ w ϦϚΠϯμʢεέδϡʔϧͱ͔5P%Pͱ͔ʣ w ͪ͜Β͸λΠϛϯά΋େࣄɻͦͷ࣌ϦΞΫγϣϯͰ͖ͳ͍ͱ๨ΕΔɻ
  7. 0UIFS1MBDFT w ଞͷ஍ҬͰ΋݁Ռ͸ಉ༷ͩͬͨ w ถࠃ w 4'ɺ1PSUMBOEɺ-BT7FHBTɺ$IJDBHPɺ)PVTUPO w ถࠃ֎ w

    4JOHBQPSFɺ$IJOB
  8. 3FTFBSDIɹ
 
 'FBUVSF *NQSPWFNFOU

  9. $IBOOFMT ௨஌ͷઃఆͷࡉ෼Խ Ϣʔβʔ͸શͯͷ௨஌͕ཉ͍͠Θ͚Ͱ͸ͳ͍

  10. $IBOOFMT w ΞϓϦ͸શͯͷ௨஌ʹ͍ͭͯνϟϯωϧΛઃఆ w ஫ʣUBSHFU4ELͰ͸ࢦఆඞਢ w Ϣʔβʔ͸$IBOOFM୯ҐͰ௨஌Λίϯτϩʔϧ

  11. $IBOOFM $BUFHPSZ w 6*্͸ΧςΰϦ $BUFHPSZ  w $BUFHPSZͱ͍͏ϫʔυΛଞͰ͢Ͱʹ࢖ͬͯ͠·ͬ ͨͷͰ಺෦తʹ͸$IBOOFM

  12. "QQ4FUUJOHT㲗"OESPJE4FUUJOHT IUUQTXXXZPVUVCFDPNXBUDI WWX;J*.J

  13. "QQ4FUUJOHTWT"OESPJE4FUUJOHT ΞϓϦͷઃఆ "OESPJEͷઃఆ )PX 8IZ 8IFO 8IBU Իྔ͸ʁ
 ϙοϓΞοϓදࣔ͢Δ͔ʁ
 FUD

    Ͳ͏͍͏಺༰ͷ௨஌ΛૹΔ͔ʁ
 Ϣʔβʔ͸ͦΕΛ͍ͭड͚औΔͷ͔ʁ
 Ͳ͏͍͏ܖػͰ௨஌͢Δͷ͔ʁ
 FUDʜ
  14. $IBOOFMEFpOJUJPO w νϟϯωϧ୯ҐͰ௨஌ͷڍಈ͸ઃఆ͞ΕΔɻ
 ͦͷͨΊɺνϟϯωϧఆٛ͸ɺ௨஌ͷڍಈΛవ Ί͍ͨ୯Ґ͕ྑ͍ w νϟοτͷϧʔϜ w χϡʔεͷૹ৴ऀ͝ͱ w

    FUDʜ
  15. /PUJpDBUJPO(SPVQ w $IBOOFMͷ্Ґʹ(SPVQͷ֓೦΋͋Δ IUUQTXXXZPVUVCFDPNXBUDI W5#,0OJ'

  16. 6TFDIBOOFMTDPSSFDUMZ w ىಈͷͨͼʹνϟϯωϧΛຖճ࡟আͯ͠࡞Γ௚ ͤ͹௨஌0''ΒΕͳ͍ʁʂ w ઃఆΞϓϦͰදࣔ͞ΕΔͷͰ΍ΊΑ͏Ͷ

  17. #FIBWJPSNPEFM ௨஌ͷڍಈͷཧղɾมߋΛΑΓ؆୯ʹ ઃఆ͔Β੍ޚͰ͖ΔͷΛ஌͍ͬͯͯ΋΍Βͳ͍

  18. 1SJPSJUZɹɹ*NQPSUBODF w /Ҏલʹ࢖ΘΕ͍ͯͨ1SJPSJUZ͸%FQSFDBUFE w ݸʑͷ௨஌ʹͰ͸ͳ͘ɺ$IBOOFM୯ҐͰઃఆ w ΧελϚΠζग़དྷΔ෯Λ੍ݶ IUUQTXXXZPVUVCFDPNXBUDI WWX;J*.J

  19. $IBOOFM$VTUPNJ[BUJPO

  20. 7JTVBM)JFSBSDIZ ϊΠζΛআڈ͠΍͍͍͢Α͏ʹ഑ஔ͢Δ ௨஌͕ଟ͗ͯ͢ඞཁͳ΋ͷΛݟ͚ͭʹ͍͘

  21. 7JTVBM)JFSBSDIZ w ͭͷόέοτʹ෼͚Δ w .BKPS0OHPJOH w 1FPQMFUP1FPQMF w (FOFSBM w

    #ZUIF8BZʢ#58ʣ w ݟΔ΂͖΋ͷ্͕ҐʹͳΔ w ࠷৽ͷΤϛϡϨʔλͰ͸͜ͷล͸ ·ͩೖͬͯͳͦ͞͏ IUUQTXXXZPVUVCFDPNXBUDI W5#,0OJ'
  22. .BKPS0OHPJOH w ༻్ w ి࿩ɺφϏɺλΠϚʔɺԻָ࠶ੜ౳ w ৚݅ w .FEJB4UZMFʹ.FEJB4FTTJPOΛηοτ w

    *NQPSUBODF.*/GPSFHSPVOETFSWJDF w ଞ w ৭Λ͚ͭͯ0, w .FEJB4UZMFͷ৔߹͸"SUXPSL͔Βલܠɾഎܠ৭Λ औಘ w ͦΕҎ֎ͷ৔߹͸ɺ"1*Ͱઃఆ w ཚ༻͠ͳ͍͜ͱɻ
 ཚ༻͞Εͨ৔߹ʹ͸࢓༷มߋ͠·͢ɻ IUUQTXXXZPVUVCFDPNXBUDI W5#,0OJ'
  23. 1FPQMFUP1FPQMF w .FTTBHJOH4UZMF w ΄΅࠷্ஈʹදࣔ͞ΕΔ w 0͔Β͸ดͯͯ͡΋ߦදࣔʹ w ฦ৴·ΘΓͰ΋΋ͬͱվળ͠ Α͏ͱ͍ͯ͠ΔΒ͍͠


    ʢ0Ͱʁʣ IUUQTXXXZPVUVCFDPNXBUDI W5#,0OJ'
  24. (FOFSBM w Α͘࢖ΘΕΔ΍ͭɻϦϚΠϯμͱ͔΋ w /Ҏલͷ΋ͷ૬౰ w େ൒ͷ΋ͷ͸#58ʹ͍͘΂͖

  25. #ZUIF8BZ #58 w ٸ͗͡Όͳ͍৘ใܥ w ఱؾɺަ௨৘ใɺ͓͢͢Ίɺ ϓϩϞʔγϣϯʜ w *NQPSUBODF.*/ w

    ߦදࣔͰ৭΋མͱ͢ w ޿͛Δͱ(FOFSBM૬౰ͷݟ ͨ໨ IUUQTXXXZPVUVCFDPNXBUDI W5#,0OJ'
  26. 4OPP[JOH ࠶௨஌Ͱ͖ΔΑ͏ʹ ϦϚΠϯμ௨஌Λࢥ͍ग़ͤͳ͍

  27. 4OPP[JOH

  28. 0UIFS

  29. /PUJpDBUJPO%PUT w EPU͸/PUJpDBUJPOͷ༗ແ w ௨஌͕ফ͑Ε͹EPU΋ফ͑Δ w 0/0'' w ΞϓϦଆ w

    ͲͷνϟϯωϧΛEPUʹ൓өͤ͞Δ͔͸ "QQଆͰઃఆՄೳ w Ϣʔβʔଆ w νϟϯωϧɺΞϓϦɺ୺຤ͷ֤ϨϕϧͰ 0/0'' w "OESPJE-BVODIFSͳΒɺΞΠί ϯ௕ԡ͠Ͱ௨஌ΛදࣔͰ͖Δ IUUQTXXXZPVUVCFDPNXBUDI W5#,0OJ'
  30. ·ͱΊ w 3FTFBSDIͷ݁Ռʹج͖ͮɺ"OESPJE0Ͱ͸͍͘ ͔ͭͷػೳมߋ͕ߦΘΕΔ w $IBOOFMT w *NQPSUBODFNPEFM w 7JTVBM)JFSBSDIZ

    w 4OPP[JOH w /PUJpDBUJPOEPUT w ΈΜͳͰਖ਼͘͠࢖Θͳ͍ͱɺϢʔβʔͷମݧ͸޲ ্͍͔ͯ͠ͳ͍ͷͰɺਖ਼͘͠࢖͍͖ͬͯ·͠ΐ͏