Slide 1

Slide 1 text

ۀ຿ΞϓϦͷ੾ࡳ Programable KIOSK mode େશ 9/17 iOSDC 2017 taiki komaba(@r_plus)

Slide 2

Slide 2 text

UBJLJLPNBCB !S@QMVT )"/%4-"#*/$

Slide 3

Slide 3 text

,*04, BLB4JOHMF"QQ.PEF

Slide 4

Slide 4 text

Programable Require Supervision Require MDM Guided Access No No No SingleApp Mode No Yes No ࣗ཯త SAM Yes Yes Yes ࣗಈධՁ ઃఆ Yes No No

Slide 5

Slide 5 text

Guided Access

Slide 6

Slide 6 text

SS͓͘

Slide 7

Slide 7 text

GUIDED ACCESS ▸ ϗʔϜϘλϯ ▸ εϦʔϓ/ϩοΫϘλϯ ▸ ϘϦϡʔϜϘλϯ ▸ ΩʔϘʔυ ▸ λον ▸ ը໘ճస

Slide 8

Slide 8 text

GUIDED ACCESS ▸ ϗʔϜϘλϯ ▸ εϦʔϓ/ϩοΫϘλϯ ▸ ϘϦϡʔϜϘλϯ ▸ ΩʔϘʔυ ▸ λον ▸ ը໘ճస ⚠ଟ਺ͷσόΠε੍ޚʹ͸޲͔ͳ͍

Slide 9

Slide 9 text

SingleAppMode

Slide 10

Slide 10 text

Apple Configurator

Slide 11

Slide 11 text

MDM

Slide 12

Slide 12 text

SINGLE APP MODE ▸ ϗʔϜϘλϯ ▸ εϦʔϓ/ϩοΫϘλϯ ▸ ϘϦϡʔϜϘλϯ ▸ ΩʔϘʔυ ▸ λον ▸ ը໘ճస ▸ AssistiveTouch ▸ ζʔϜ ▸ ৭൓స ▸ VoiceOver

Slide 13

Slide 13 text

SINGLE APP MODE ▸ ϗʔϜϘλϯ ▸ εϦʔϓ/ϩοΫϘλϯ ▸ ϘϦϡʔϜϘλϯ ▸ ΩʔϘʔυ ▸ λον ▸ ը໘ճస ▸ AssistiveTouch ▸ ζʔϜ ▸ ৭൓స ▸ VoiceOver ଟ਺ͷσόΠεʹ΋EFQMPZՄೳ

Slide 14

Slide 14 text

SINGLE APP MODE ▸ ϗʔϜϘλϯ ▸ εϦʔϓ/ϩοΫϘλϯ ▸ ϘϦϡʔϜϘλϯ ▸ ΩʔϘʔυ ▸ λον ▸ ը໘ճస ▸ AssistiveTouch ▸ ζʔϜ ▸ ৭൓స ▸ VoiceOver ଟ਺ͷσόΠεʹ΋EFQMPZՄೳ ͔͠͠"1*͕࢖͑ͳ͍

Slide 15

Slide 15 text

ࣗ཯త SingleAppMode

Slide 16

Slide 16 text

ࣗ཯తSINGLE APP MODE ▸ ϗʔϜϘλϯ ▸ εϦʔϓ/ϩοΫϘλϯ ▸ Multitasking ΞϓϦͷΈར༻Մʹ͢Δ໨త ແޮԽͰ͖Δ߲໨͕গͳ͘ઃఆෆՄ

Slide 17

Slide 17 text

ࣗಈධՁઃఆ (Automatic Assessment Configuration)

Slide 18

Slide 18 text

ࣗಈධՁઃఆ ▸ ϗʔϜϘλϯ ▸ εϦʔϓ/ϩοΫϘλϯ ▸ Multitasking ▸ ࣗಈิ׬/εϖϧνΣοΫ/༧ଌม׵/ΩʔϘʔυγϣʔτΧοτ/ ΫϦοϓϘʔυ/Ի੠ೖྗ ࢼݧར༻ͷͨΊͷ,JPTL ΞϓϦͷΈར༻ՄʹՃ͑ͯ ճ౴ิॿʹͳΔΑ͏ͳػೳͷແޮԽ

Slide 19

Slide 19 text

Programable Require Supervision Require MDM Guided Access No No No SingleApp Mode No Yes No ࣗ཯త SAM Yes Yes Yes ࣗಈධՁ ઃఆ Yes No No

Slide 20

Slide 20 text

Programable Require Supervision Require MDM Guided Access No No No SingleApp Mode No Yes No ࣗ཯త SAM Yes Yes Yes ࣗಈධՁ ઃఆ Yes No No

Slide 21

Slide 21 text

)PXUP FOBCMF QSPHSBNBCMF

Slide 22

Slide 22 text

func UIAccessibilityRequestGuidedAccessSession (_ enable: Bool, completionHandler: @escaping (Bool) -> Void)

Slide 23

Slide 23 text

UIAccessibilityRequestGuidedAccessSession(true) { success in print(success) } ⚠completionHandler͕࣮ߦ͞ΕΔ·Ͱ਺ඦmsఔ͔͔Δ

Slide 24

Slide 24 text

-PDLBCMF

Slide 25

Slide 25 text

εϦʔϓϩοΫϘλϯ͸ ແޮԽର৅

Slide 26

Slide 26 text

͔͠͠ ͨ·ʹϩοΫͰ͖Δ

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

ϩοΫͰ͖ ·ͨ͠

Slide 29

Slide 29 text

Ͱ΋ɺ͜Ε͸ηʔϑ

Slide 30

Slide 30 text

ը໘ফ౮͞Ε͍ͯΔ͚ͩ ϩοΫղআը໘͸ग़ͳ͍

Slide 31

Slide 31 text

,JPTL $SBTI

Slide 32

Slide 32 text

,JPTLϞʔυͰ Ϋϥογϡͨ࣌͠ Ͳ͏ͳΔ͔ʁ

Slide 33

Slide 33 text

ϗʔϜը໘ʹભҠޙ ࣗಈతʹΞϓϦ͕ىಈ

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

(͏·͘ىಈ͠·ͨ͠)

Slide 36

Slide 36 text

ఆظతͳ FYJU ͰϝϞϦͷΫϦΞ͕Մೳ

Slide 37

Slide 37 text

ͱࢥ͍͖΍ɾɾɾ

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

ΘΓͱىಈ͠ͳ͍

Slide 40

Slide 40 text

͔͠΋

Slide 41

Slide 41 text

ΞϓϦΛλοϓͯ͠΋ ىಈ͠ͳ͍

Slide 42

Slide 42 text

શΞϓϦɺλοϓͯ͠΋ ىಈ͠ͳ͍☠

Slide 43

Slide 43 text

XPSLBSPVOE ͋Γ·͢

Slide 44

Slide 44 text

,JPTLΦϑͰͷ$SBTI ͳΒൃੜ͠ͳ͍

Slide 45

Slide 45 text

func NSSetUncaughtExceptionHandler(_: ((NSException) -> Void)?)

Slide 46

Slide 46 text

func NSSetUncaughtExceptionHandler { exception in UIAccessibilityRequestGuidedAccessSession(false){ _ in } }

Slide 47

Slide 47 text

4XJGUͷΫϥογϡͰ͸ ݺ͹Εͳ͍ func NSSetUncaughtExceptionHandler { exception in UIAccessibilityRequestGuidedAccessSession(false){ _ in } }

Slide 48

Slide 48 text

4XJGUͷΫϥογϡ OJMVOXSBQFUD ͸ ⚡γάφϧ⚡͕ඈͿ͚ͩɻ

Slide 49

Slide 49 text

SIGNALS ▸ SIGHUP ▸ SIGINT ▸ SIGTRAP ▸ SIGABRT ▸ SIGKILL ▸ SIGSEGV ▸ … NBOTJHOBMͰ৭ʑݟΕ·͢

Slide 50

Slide 50 text

⚡γάφϧ⚡Λτϥοϓ͠Α͏

Slide 51

Slide 51 text

import Darwin func sigaction(_: Int32, _: UnsafePointer!, _: UnsafeMutablePointer!) -> Int32 int sigaction(int sig, const struct sigaction *restrict act, struct sigaction *restrict oact); JO$ NBOTJHBDUJPOͰ৭ʑݟΕ·͢ *#.4XJGU#MVF4JHOBMT͕Φεεϝ

Slide 52

Slide 52 text

·ͱΊ ▸ KioskϞʔυʹ͸4छྨ͋Δɺ੍ݶͰ͖Δػೳ͸ͦΕͧΕҧ͏ ▸ API͕࢖͑Δ΋ͷͱ࢖͑ͳ͍KioskϞʔυ͕͋Δ ▸ KioskϞʔυͰ͸ϓϩηε͕ऴྃ͢ΔͱࣗಈͰ࠶ىಈ͞ΕΔ ▸ ࣗಈతͳ࠶ىಈ͸த్൒୺ͳঢ়ଶʹͳΔࣄ͕͋Δ ▸ த్൒୺ͳঢ়ଶʹͳΔͱ٧Ή ▸ ٧·ͳ͍ͨΊʹNSExceptionͱSIGNALΛΩϟον͠Α͏ʂ

Slide 53

Slide 53 text

͓ΘΓɻ