Slide 1

Slide 1 text

iOS 14ͷҐஔ৘ใܥΞοϓσʔτ ాதୡ໵ (@tattn) Bonfire iOS #8 (WWDC20ใࠂձ) IUUQTEFWFMPQFSBQQMFDPNWJEFPTQMBZXXED

Slide 2

Slide 2 text

ాத ୡ໵ / ͨͳͨͭ (@tattn) • Yahoo!ΧʔφϏ • Yahoo!৐׵Ҋ಺ @tattn @tanakasan2525 @tattn Copyright (C) 2020 Yahoo Japan Corporation. All Rights Reserved.

Slide 3

Slide 3 text

τϐοΫε

Slide 4

Slide 4 text

Ґஔ৘ใܥͷτϐοΫε • Ґஔ৘ใͷਫ਼౓Λ੍ݶ͢Δػೳͷ௥Ճ • APIͷมߋͱ௥Ճ • AppClips΍WidgetsͰͷҐஔ৘ใ

Slide 5

Slide 5 text

࢓༷มߋͷܦҢ

Slide 6

Slide 6 text

ਖ਼֬ͳҐஔ৘ใ͕ඞཁͰ͸ͳ͍ΞϓϦ͕͋Δ ඞཁ: φϏήʔγϣϯΞϓϦͳͲ

Slide 7

Slide 7 text

ਖ਼֬ͳҐஔ৘ใ͕ඞཁͰ͸ͳ͍ΞϓϦ͕͋Δ ෆཁ: ιʔγϟϧϝσΟΞɾग़ձ͍ܥΞϓϦͳͲ

Slide 8

Slide 8 text

มΘͬͨ͜ͱ

Slide 9

Slide 9 text

iOS 14Ͱ͸ڐ୚Ξϥʔτʹ৽͍߲͠໨͕௥Ճ Ґஔڐ୚ΞϥʔτͰ ͜Ε·ͰͷڐՄબ୒ʹՃ͑ɺ ਖ਼֬ͳҐஔ৘ใͷOn/Off͕બ΂ΔΑ͏ʹ σϑΥϧτ͸ਖ਼֬ͳҐஔ৘ใΛڐՄঢ়ଶ

Slide 10

Slide 10 text

ਖ਼֬ͳҐஔ৘ใΛΦϑʹͨ࣌͠ͷΞϥʔτ

Slide 11

Slide 11 text

iOS 14Ͱ͸ઃఆΞϓϦʹ΋৽͍߲͠໨͕௥Ճ ઃఆΞϓϦʹ΋ ਖ਼֬ͳҐஔ৘ใͷ߲໨͕ ௥Ճ Ϣʔβʔ͸͍ͭͰ΋ ͜ͷઃఆΛมߋՄೳͳͷͰ ΞϓϦଆͰ੍ޚ͕ඞཁ

Slide 12

Slide 12 text

iOS 14 beta 3ͰͷڍಈͳͷͰ GM൛Ͱ΋֬ೝ͍ͨ͠Ͱ͢ iOS 13Ͱ͢ͰʹҐஔ৘ใΛڐ୚ࡁΈͷΞϓϦ͸ iOS 14΁ͷΞοϓσʔτޙɺ ਖ਼֬ͳҐஔ৘ใ͕ڐՄ͞Ε͍ͯΔঢ়ଶͰͨ͠☺ →(௥ه) ਖ਼ࣜ൛Ͱ΋ಉ͡Ͱͨ͠

Slide 13

Slide 13 text

Delegateϝιουͷมߋ ڐ୚ΞϥʔτΛλοϓͨ͠ࡍʹݺ͹ΕΔσϦήʔτʹมߋ͕͋Γ·͢ @available(iOS, introduced: 4.2, deprecated: 14.0) @available(iOS 14.0, *)

Slide 14

Slide 14 text

Delegateϝιουͷมߋ ڐ୚ΞϥʔτΛλοϓͨ͠ࡍʹݺ͹ΕΔσϦήʔτʹมߋ͕͋Γ·͢ @available(iOS, introduced: 4.2, deprecated: 14.0) @available(iOS 14.0, *) iOS 14Ͱ͸ ৽ϝιουΛ࣮૷͍ͯ͠ͳ͍৔߹ˠچϝιου͕ࠓ·Ͱ௨Γݺ͹ΕΔ ৽ϝιουΛ࣮૷͍ͯ͠Δ৔߹ɹˠ৽ϝιουͷΈݺ͹ΕΔ

Slide 15

Slide 15 text

ਫ਼౓΋औಘͯ͠ϋϯυϦϯά͢Δྫ

Slide 16

Slide 16 text

Ϋϥεϝιουͷඇਪ঑Խ @available(iOS, introduced: 4.2, deprecated: 14.0) @available(iOS 14.0, *)

Slide 17

Slide 17 text

Ґஔ৘ใͷਫ਼౓੍͕ݶ͞Ε͍ͯΔ৔߹(reduced) ͜Ε·Ͱ௨ΓҐஔʹมߋ͕͋Ε͹ didUpdateLocations ͕ݺ͹ΕΔ ͨͩ͠ɺCLLocationͷhorizontalAccuracy͕େ͖͘ͳΓɺ Ґஔͷߋ৽͸1࣌ؒʹ4ճʹͳΔ ݱࡏ஍ΛؚΉ໿1ʙ20kmൣғͷྖҬͱͳΓ·͢ සൟʹdidUpdateLocations͕ݺ͹ΕΔ͜ͱΛظ଴͍ͯ͠Δ ࣮૷ʹͳ͍ͬͯΔ৔߹͸஫ҙ͍ͯͩ͘͠͞ (requestLocationΛݺͼग़ͨ͠৔߹͸ɺdelegate͸ݺ͹Ε·͢)

Slide 18

Slide 18 text

ਫ਼౓ͷ௿͍Ґஔ৘ใͷऔಘྫ ελʔτ

Slide 19

Slide 19 text

ਫ਼౓ͷ௿͍Ґஔ৘ใͷऔಘྫ มԽͳ͠

Slide 20

Slide 20 text

ਫ਼౓ͷ௿͍Ґஔ৘ใͷऔಘྫ มԽͳ͠

Slide 21

Slide 21 text

ਫ਼౓ͷ௿͍Ґஔ৘ใͷऔಘྫ ߋ৽

Slide 22

Slide 22 text

ਫ਼౓ͷ௿͍Ґஔ৘ใͷऔಘྫ ߋ৽

Slide 23

Slide 23 text

ྖҬͷதԝ͕ݱࡏ஍ͱ͍͏Θ͚Ͱ͸ͳ͍ ฏۉ͸5km൒ܘɺີूͨ͠౎ࢢͰ͸਺kmɺ ೶ଜ෦Ͱ͸10kmҎ্ͳͲɺௐ੔͞Εͨ஋ʹͳ͍ͬͯ·͢

Slide 24

Slide 24 text

࣮ࡍͷҢ౓ܦ౓ͷ஋ খ਺఺ҎԼͷܻ਺͸੍ݶ͞Ε͍ͯͯ΋ಉ͡ (খ਺఺ҎԼ8ܻ) ࣗ୐पลͰ͸ਫฏਫ਼౓͸௨ৗ࣌͸70mɺ੍ݶ࣌͸5.7km ͨͩɺͦͷ۠͸࣮ࡍʹ͍Δ۠ͷྡͷ۠Ͱͨ͠ CLGeocoderͰॅॴΛऔΔͱ۠·ͰऔΕ·ͨ͠ (౦ژ)

Slide 25

Slide 25 text

AppleͷMapΞϓϦͷྫ ੍ݶ͞Ε͍ͯΔ࣌͸ԁͰҐஔΛදࣔ

Slide 26

Slide 26 text

AppleͷMapΞϓϦͷྫ ্ͷ͓஌ΒͤΛλοϓ͢ΔͱઃఆΞϓϦ΁ͷ༠ಋΞϥʔτ͕දࣔ

Slide 27

Slide 27 text

AppleͷMapΞϓϦͷྫ ਫ਼౓Λ੍ݶ͞Ε͍ͯͯ΋ ΞϓϦ͸ىಈͰ͖ɺ φϏήʔγϣϯͳͲͷ ਖ਼֬ͳҐஔ͕ඞཁͳ࣌ʹ Ϣʔβʔʹਫ਼౓Λཁٻ͢ΔUX

Slide 28

Slide 28 text

AppleͷMapΞϓϦͷྫ ਖ਼֬ͳҐஔ৘ใ͕OFFͷ࣌ʹ ਫ਼౓ඞਢͷػೳΛλοϓͨ͠Β Ұ౓͚ͩਖ਼֬ͳҐஔΛڐՄ͢Δ ΞϥʔτΛग़͢ ͜ͷΞϥʔτ͸Կ౓Ͱ΋දࣔͰ͖·͢

Slide 29

Slide 29 text

requestTemporaryFullAccuracyAuthorization ར༻໨తͷจݴͷग़͠෼͚͕Մೳ

Slide 30

Slide 30 text

σϑΥϧτͰਫ਼౓Λམͱ͢͜ͱ΋Ͱ͖Δ

Slide 31

Slide 31 text

ਫ਼౓੍͕ݶ͞Εͨ࣌ͷόοΫάϥ΢ϯυܥͷ࢓༷ Significant Location Changes ߋ৽ස౓͕1࣌ؒʹ4ճͳͷͰݕ஌ස౓͕ݮΓ ਫ਼౓΋௿͘ͳΔ Visits (๚໰؂ࢹAPI) ࣌ؒ͸ਖ਼֬ɺҐஔ͸ਫ਼౓͕௿͍ Ϗʔίϯ΍Ϧʔδϣϯ શ͘ݕ஌Ͱ͖ͳ͘ͳΔ

Slide 32

Slide 32 text

AppClips AppClipsͰ΋GPS͕࢖͑Δ ͨͩ͠ɺৗʹڐՄ͸બ΂ͣɺ ࢖༻தͷΈڐՄ΋ ࣍ͷ೔ͷேʹແޮʹͳΔ ৗʹڐՄ͕ඞཁͳ࢓༷͸ ΍Ί·͠ΐ͏

Slide 33

Slide 33 text

Widgets plistʹNSWidgetWantsLocationͷ௥Ճ͕ඞཁ ڐ୚Ξϥʔτ͸දࣔͰ͖ͳ͍ͨΊɺ ຊମΞϓϦͰڐ୚͢Δඞཁ͕͋Δ Ґஔ৘ใ͕ඞཁͳػೳ͕͋Δ৔߹͸ ຊମΞϓϦʹ༠ಋ͢ΔػೳΛ͚ͭ·͠ΐ͏

Slide 34

Slide 34 text

·ͱΊ

Slide 35

Slide 35 text

·ͱΊ • Ґஔ৘ใͷਫ਼౓੍͕ݶ͞ΕΔ৔߹͕͋Γ·͢ • ຊ౰ʹਖ਼֬ͳҐஔ৘ใ͕ඞཁͳͱ͖ͷΈ ONʹ͢ΔΑ͏ͳ࢓༷͕Appleͷ͓͢͢ΊͰ͢ • App Clips΍WidgetsͰ΋Ґஔ৘ใ͕࢖͑·͕͢ ੍ݶ͕͋Γ·͢