Companion

object Companion

Functions

Link copied to clipboard
fun canHandleMessage(message: RemoteMessage): Boolean

KARTE経由で送信された通知メッセージであるか判定します。

Link copied to clipboard

プッシュ通知の開封イベントの送信に必要なパラメータをIntentにコピーします。

Link copied to clipboard
fun extractKarteAttributes(message: RemoteMessage): KarteAttributes?

RemoteMessageからSDKが自動で処理するデータを取り出し、KarteAttributesインスタンスを返します。

データメッセージからSDKが自動で処理するデータを取り出し、KarteAttributesインスタンスを返します。

Link copied to clipboard
fun handleMessage(context: Context, message: RemoteMessage, defaultIntent: Intent? = null): Boolean
fun handleMessage(context: Context, message: RemoteMessage, notification: Notification?, defaultIntent: Intent? = null): Boolean

KARTE経由で送信された通知メッセージから、通知を作成・表示します。

fun handleMessage(context: Context, data: Map<String, String>, defaultIntent: Intent? = null): Boolean
fun handleMessage(context: Context, data: Map<String, String>, notification: Notification?, defaultIntent: Intent? = null): Boolean

KARTE経由で送信された通知メッセージ(データメッセージ)から、通知を作成・表示します。