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

Ionic Meetup Tokyo #4

Ionic Meetup Tokyo #4

Let's develop your ionic native plugin

Edf8a6f885ce049d71c7a957865c5643?s=128

FirstFourNotes,LLC

May 20, 2018
Tweet

Transcript

  1.  Ionic Meetup Tokyo #4 2018/5/20 @te20

  2.  2 ࢯ໊ ༝୩ ఩෉ ʢΏͨʹ ͓ͯͭʣ 'JSTU'PVS/PUFT --$୅ද •

    ϞόΠϧΞϓϦ։ൃ • *P5ʢϋʔυɺιϑτʣ։ൃ • ϑϩϯτΤϯυ։ൃ • Πϥετɺອը࡞੒
  3. Ionic q ཉ͍͠ػೳ͕αϙʔτ͞Εͯͳ͍ q ୺຤ʹ͸͋ΔΜ͚ͩͲ*POJD$PSEPWBͰαϙʔτ͞Εͯͳ͍ q ϓϥάΠϯ͸͋ΔΜ͚ͩͲɺཉ͍͠ػೳͱͪΐͬͱҧ͏ q ͖͋ΒΊͯωΠςΟϒΞϓϦ q

    J04΋"OESPJE΋αϙʔτ͍ͨ͠͠ q 6*΍ଞͷ෦෼͸*POJDͷํ͕ඳ͖΍͍͢͠ q $44ҰൃͰͰ͖Δͷʹ q /BWJHBUJPODPOUSPMMFS WJFXDPOUSPMMFS MJGFDZDMF  3
  4. Ionic/Cordova  ͓࡞๏͑͞஌ͬͯ͠·͑͹ɺ؆୯ʹωΠςΟϒίʔυΛݺͼग़ͤΔ 4 0QFO$7ΛϓϥάΠϯԽ • "3ػೳ͚ͩαϙʔτ .*%*ͷϓϥάΠϯΛվ଄ • ָثࢦఆΛ௥Ճ

  5. Ionic/Cordova  Ionic App @ionic-native  Cordova  iOS 

    Obj-C/Swift Android  Java ϓϩδΣΫτOPEF@NPEVMFT!JPOJDOBUJWFϓϥάΠϯ໊ OQN JOTUBMMTBWF!JPOJDOBUJWFGJMF ϓϩδΣΫτQMVHJOTϓϥάΠϯ໊ JPOJDDPSEPWB QMVHJOBEEDPSEPWBQMVHJOGJMF
  6. Cordova 6 ᵓᴷᴷ3&"%.&NE ᵓᴷᴷQBDLBHFKTPO ᵓᴷᴷQMVHJOYNM ᵓᴷᴷTSD ᴹ ᵓᴷᴷBOESPJE ᴹ ᵋᴷᴷJPT

    ᵋᴷᴷXXX ᵋᴷᴷQMVHJOKT QMVHJOYNM ϓϥάΠϯͷ৘ใ ϓϥάΠϯ໊ ωΠςΟϒͷϑΝΠϧ໊ ύʔϛογϣϯͳͲ QMVHJOKT ΞϓϦ͔Βݺͼग़͞ΕΔؔ਺ϝιου ͜ͷதͰ͞ΒʹωΠςΟϒͷؔ਺Λݺͼग़͢ TSDJPT TSDBOESPJE ωΠςΟϒͷίʔυ
  7.  7 IMPOR OU DA IO .O C USIC ROCESSOR$

    C ASS USIC ROCESSOR) 0 U I .O C OAD IDI A A)$ FU C OAD IDI A A COMMA D) 0 VOKED;R 0OMMA D$ VAR P U I ESU ) 0 U I ESU E PA COMMA D AR UME S=(> AS : RI E S A US OAD USIC:E UE CE FI E) PA $ IF S A US I P U I ESU 0 U I ESU S A US) 0 0OMMA D: A US? MESSA E/S) S A US$ [ E SE P U I ESU 0 U I ESU S A US) 0 0OMMA D: A US? MESSA E/S) FAI ED O OAD DA A $ [ SE F COMMA D E E A E SE D P U I ESU CA ACK D) COMMA D CA ACK D$ [ [ ωΠςΟϒίʔυ 4XJGU CO S CORDOVA RE UIRE "CORDOVA"$ CO S E EC RE UIRE "CORDOVA'E EC $ VAR USIC ROCESSOR FU C IO $ CO SO E O @= IDI ROCESSOR> I I IA I E) ! AR UME S[@$ [ USIC ROCESSOR PRO O PE OAD IDI A A MIDI A SUCCESS ERROR$ , E EC SUCCESS ERROR " USIC ROCESSOR" " OAD IDI A A" =MIDI A >$ [ ϓϥάΠϯKT *POJDΞϓϦ͔Βͷ஋ *POJDΞϓϦ΁ͷ໭Γ஋ ωΠςΟϒͷݺͼग़͠ ωΠςΟϒͷ"1*
  8. Ionic native  !JPOJDOBUJWFQMVHJOTϓϥάΠϯ໊JOEFYUT ͱ͍͏ϑΝΠϧͻͱ͚ͭͩɻ • ϓϥάΠϯͷ৘ใ • ϓϥάΠϯ໊ɺ$PSEPWBϓϥάΠϯ໊ͳͲʣ •

    &YQPSUDMBTT • *NQPSU͢Δ$MBTTఆٛ • ϝιουఆٛ • $PSEPWBϓϥάΠϯͷݺͼग़͠ D O T /IE@>O< @ U A <I P < > @ ' D O T P DI , < / ID> <OD @ P DI U A D ID> I<OD @ > @V' P DI T P DI < @ > V P DI > < P DI < P> I <> < @ I< @ @R< @ > < P DI >< @ < P DI @A > < P DIN > V @ OC@ DOCP @ NDO S A OC@ P DI DINO< / DINO< > <I DI ><N@ OC@ P DI @LPD @N < D< @N DINO< < D< @N :; / OC@ P DI @LPD @N < D< @N <OA N : I D D ; <S A <OA N NP O@ @R< @ : I D D ; U /IE@>O< @ @R O > <NN > @RO@I N / ID> <OD @ P DI T , < @I, @ ND I O DI DN@(<IS) T @OP I' @ < @OP I' C@ @ O < D <IS /-. , D @ @ N U , < NO< O,< @ < D T U U
  9.  • ΞϓϦΛ࣮ߦ͢Δ·Ͱ໰୊͕Θ͔Βͳ͍ • ωΠςΟϒ؀ڥͰͷσόοά͕ඞཁ • ωΠςΟϒίʔυ͸࠷খݶʹɻ • *POJDͷศརͳ؀ڥ͕࢖͑ͳ͍ •

    *POJDTFSWF %FW"QQ ͸ΤϥʔͱͳΔ • ͜͏͍͏؀ڥͰ͸ϓϥάΠϯΛݺ͹ͳ͍Α͏ͳ޻෉͕͋Δͱศར 9
  10.  *POJD$PSEPWB ωΠςΟϒίʔυ ʹ ϋΠϒϦουΞϓϦ 10

  11. ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻ *POJDΞϓϦ΍ϓϥάΠϯͳͲͷ͝૬ஊΛঝ͓ͬͯΓ·͢ɻ 11