Upgrade to Pro — share decks privately, control downloads, hide ads and more …

会社休むために実装するSiri Shortcuts

会社休むために実装するSiri Shortcuts

70c0a0634aacee68f67e61c8c743cae4?s=128

tatetate55

July 17, 2018
Tweet

Other Decks in Programming

Transcript

  1. ձࣾٳΉͨΊʹ࣮૷͢Δ 4JSJTIPSUDVUT ,B[VIJSP,BNBLVSB ͨͯͨͯ

  2. ࣗݾ঺հ w ,B[VIJSP,BNBLVSB w ϓϩάϥϛϯάʹݶΒͣԿ͔࡞Δͷ͕޷͖
 ݄ͷ.'5 .BLFS'BJSF5PLZP΋ग़·͢  w UXJUUFS!ZPZPLL55

    ͨͯͨͯ  w ϒϩάIUUQXXXUBUFUBUFDPN
  3. ໨࣍ w 88%$Ͱൃද͞Εͨ4JSJͷਐԽ w 4JSJTIPSUDVUTͷ։ൃ४උ w /46TFS"DUJWJUZͱJOUFOUʹ͍ͭͯ w /46TFS"DUJWJUZͰ࣮૷ w

    *OUFOUTͰͷ࣮૷
  4. 88%$Ͱൃද͞Εͨ 4JSJͷਐԽ w 4JSJTIPSUDVUTػೳ͕௥Ճ
 4JSJ͔Β௚઀ΞϓϦͷ༷ʑͳػೳΛݺͼग़͢͜ͱ͕Մೳʹ
 TIPSUDVUΞϓϦ΋௥Ճ͞ΕΔ
 
 ઃఆͷ"EEUP4JSJ͔ΒϑϨʔζΛొ࿥͢Δ w 4JSJTVHHFTUJPOTͷڧԽ


    श׳ͳͲ͔Βج͍ͮͯTVHHFTUͯ͘͠ΕΔΑ͏ʹ w LFZOPUF d
  5. ࠓճ࡞Γ͍ͨαϯϓϧ w 4JSJʹʮർΕͨʯͱݴͬͨΒۈଵϝʔϧΛ্௕ʹૹΔΞϓ ϦΛTJSJTIPSUDVUTͰ࡞Δ
 ͢ͰʹఆܕจΛ࡞ͬͯϝʔϧΛૹΔΞϓϦ͸࡞੒ࡁ ർΕͨ ࠓ೔ٳΈ·͢

  6. ։ൃલͷࣄલ४උ w J04ͷઃఆɹˠEFWFMPQFSͷʮ4)035$654 5&45*/(ʯ͔Β%JTQMBZ3FDFOU4IPSUDVUTͱ%JTQMBZ %POBUJPOTPO-PDL4DSFFOΛ0/ʹ w ϩοΫը໘ʹ࠷ۙݟͨ4BGBSJͷϖʔδͳͲ͕දࣔ͞ΕΔͷ Ͱ஫ҙʂʂʂ ϓϥΠϕʔτϞʔυඞਢ ͜Εˠ

    ͜Εˠ
  7. 4JSJTIPSUDVUTΛ ࡞੒͢ΔͨΊͷํ๏͸̎छྨ w /46TFS"DUJWJUZ w *OUFOUT

  8. /46TFS"DUJWJUZ w ࣮૷͸؆୯ w *OUFOUTͱൺ΂ͯγϯϓϧͳ͜ͱ͔͠Ͱ͖ͳ͍
 TJSJͰΞϓϦΛىಈͨ͠ΓTQPUMJHIUͰΞϓϦΛදࣔͨ͠Γ

  9. ࣮૷खॱ w JOGPQMJTUʹ/46TFS"DUJWJUZ5ZQFTΛ௥Ճ w /46TFS"DUJWJUZΛ௥Ճ w "QQ%FMFHBUFͰIBOEMF͢ΔॲཧΛ௥Ճ

  10. *OGPQMJTUʹ /46TFS"DUJWJUZ5ZQFTΛ௥Ճ LFZ/46TFS"DUJWJUZ5ZQFTLFZ BSSBZ TUSJOHDPNIPHFTJSJTUSJOH BSSBZ

  11. /46TFS"DUJWJUZΛ༻ҙ /%"ͷͨΊ࡟আ͍ͯ͠·͢

  12. "QQ%FMFHBUFʹ௥Ճ extension AppDelegate { func application(_ application: UIApplication, continue userActivity:

    NSUserActivity, restorationHandler: @escaping ([Any]?) -> Void) -> Bool { if userActivity.activityType == "com.kintai.siri" { // Restore state for userActivity and userInfo print(“͕͜͜ݺ͹ΕΔʂ") } return true } } w
  13. ઃఆͷγϣʔτΧοτ͔Β ௥Ճ͕Մೳʹ ͜Ε͚ͩͰTJSJ͔ΒΞϓϦΛىಈͰ͖Δʂ /%"ͷͨΊ࡟আ͍ͯ͠·͢

  14. σϞಈը /%"ͷͨΊ࡟আ͍ͯ͠·͢

  15. None
  16. ΋ͬͱૉૣ͘ٳΈ͍ͨ

  17. ϩοΫը໘Ͱ ׬͍݁ͨ͠

  18. ͦ͜Ͱ*OUFOUT

  19. *OUFOUT w γϣʔτΧοτͷϑϨʔζΛΧελϚΠζͰ͖Δ w ϩοΫը໘ʹΠϯϥΠϯͰ༷ʑͳ৘ใΛग़ͤΔͦͷ·· ૢ࡞Մೳ

  20. *OUFOUTͰͷ௥Ճ w 'JMFˠ/FXpMFˠ4JSJ,JU*OUFOU%FpOJUJPO'JMFͰ௥Ճ "QQHSPVQTͷ௥Ճ๨Εͣʹ  w DVTUPN*OUFOUTͷ௥Ճ w *OUFOU)BOEMFSͰॲཧͷ௥Ճ w

    7JFXΛมߋ͢Δʢࠓճ͸͠ͳ͍ʣ
  21. 'JMFˠ/FXpMFˠ4JSJ,JU *OUFOU%FpOJUJPO'JMF /%"ͷͨΊ࡟আ͍ͯ͠·͢

  22. DVTUPN*OUFOUTͷ௥Ճ w DBUFHPSZͰ͋Δఔ౓ͷύλʔϯ͸༻ҙ͞Ε͍ͯΔ
 0SEFS΍4FOEͳͲ w $VTUPN*OUFU1BSBNFUFST4IPSUDVU5ZQFTΛ௥Ճ /%"ͷͨΊ࡟আ͍ͯ͠·͢

  23. *OUFOU)BOEMFSͷमਖ਼ w IBOEMFͷͱ͜ΖʹԿ͔ΠϯϥΠϯ͔Β΍Γ͍ͨॲཧΛ
 ॻ͘ /%"ͷͨΊ࡟আ͍ͯ͠·͢

  24. %POBUFJOUFOUWFS let intent = SendMailIntent() let interaction = INInteraction(intent: intent,

    response: nil) interaction.donate() { _ in print("Donated!") }
  25. ΧελϜγϣʔτΧοτΛ ௥Ճ ˡ૿͍͑ͯΔ /%"ͷͨΊ࡟আ͍ͯ͠·͢

  26. σϞಈը /%"ͷͨΊ࡟আ͍ͯ͠·͢

  27. ࢀߟ w ಈըɹ*OUSPEVDUJPOUP4JSJ4IPUSUDVU
 IUUQTEFWFMPQFSBQQMFDPNWJEFPTQMBZ XXED w ಈըͷԼʹ͋Δ3FTPVSDFʹαϯϓϧ౳ͷϦϯΫ w J04ͷ࣌ʹൃද͞Εͨ4JSJ,JUͷ಺༰

  28. ͓͢͢Ίαϯϓϧ  νϡʔτϦΞϧ w /46TFSWJSJUZ
 IUUQTNFEJVNDPN!5POZ.FXUVUPSJBMBEEJOH JPTTJSJTIPSUDVUTUPZPVSBQQFBTZXBZ FECGDBDF w *OUFOUT


    IUUQTNFEJVNDPNqBXMFTTBQQTUPSJFT XXEDGPSJPTEFWFMPQFSTTJSJTIPSUDVUT FFBGBE