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

アプリの通知をLollipop対応しよう / shibuya.apk 2015-05-22 LT

mstssk
May 21, 2015

アプリの通知をLollipop対応しよう / shibuya.apk 2015-05-22 LT

2015年5月22日のshibuya.apkで、Lollipopの通知についてLTしました。

mstssk

May 21, 2015
Tweet

More Decks by mstssk

Other Decks in Technology

Transcript

  1. visibility׾鏣㹀׃״ֲ ˖ visibilityח鏣㹀ׅ׷אך㹀侧
 VISIBILITY_PUBLIC, ~_PRIVATE, ~_SECRET ˖ BuilderךsetVisibilityًاحس׾⢪ֲ ˖ 䊴׃剏ִ׷鸐濼כpublicVersionח鏣㹀

    PUBLIC PRIVATE PRIVATE (publicVer෇) SECRET ׉ךתת邌爙 ⰻ㺁׾ꦀׅ ٗحؙ歗꬗欽ך ⴽך鸐濼׾邌爙 ⡦׮邌爙׃זְ
  2. category׾鏣㹀׃ת׃׳ֲ ˖ CATEGORY_XXXהְֲ㹀侧ָ⦐֮׷
 BuilderךsetCategoryًاحس׾⢪ֲ ˖ ד׮ؿ؍ٕة鏣㹀דֹ׷ךכא׌ֽPS[
 EVENT, CALLS, MESSAGE ˖

    CALLSהMESSAGEדכ涪⥋罏ך鸬窃⯓63*׮ 鏣㹀׃״ֲ ˖ BuilderךaddPersonًاحس׾⢪ֲ ˖ tel:~װmailto:~ד׮0,
 ˟ꨵ鑧殢〾PSً،سָ畭劣ךꨵ鑧䌘חזֽ׸ל搀鋔ׁ׸׷
  3. 鋅ִזְהֿ׹ך㢌刿 • tickerText ˖ 邌爙ׁ׸זְֽוdeprecatedׄׯזְ ˖ 铣׫♳־؟٦ؽأזוך׋׭鏣㹀ׅ׷ ˖ Audio Streamך䭷㹀כAudioAttributesד

    ˖ intךؿؚٓדstream䪔׏ג׋ך׾ꦀ誊 ˖ AudioAttributes׾「ֽ《׷setSoundًاح سָBuilderח㟓ִג׷
  4. Heads-up Notification ˖ؐؠְ ˖邌爙ׁ׸׷勴⟝ ˖ fullScreenIntent ،ٓ٦ي鸐濼ך،ٖ  ˖ ⶴ׶鴥׫

    갈PSغ؎ـ ך֮׷ PRIORITY_HIGH⟃♳ך鸐濼 ˖ ׍ׯ׿הِ٦ؠ٦ָⶴ׶鴥׫׾ 鏣㹀דֹ׷״ֲח׃״ֲ
  5. MediaStyle ˖ 倜׃ֻדֹ׋MediaSession APIהך鸬⹛׾䟝㹀׃ג׷ ˖ אActionButtonΛ縧ֽ׷ ˖ ؟ه٦زٓ؎ـٓٔח搀ְ ˖ ה׶ִ֮׆➙֮׷׮ך׾

    VISIBILITY_PUBLICח׃״ֲ
 ˟ِ٦ؠ٦ָׅץגך鸐濼ⰻ㺁׾邌爙׃זְח鏣㹀׃ג ׋׵וֲ׃״ֲ׮זֻזְ (PPHMFٗحؙ歗꬗ךⱄ欰؝ٝزٗ٦ٕ搀ֻ׃׋ַ׵
 ➿׻׶ח鸐濼ד邌爙׃׹״կStyle׮欽䠐׃׋׊