Show / Hide Table of Contents

Class RemoteNotificationHandler

RemoteNotificationHandlerクラスは、KARTEから送信された通知メッセージを処理する機能を提供します。

Inheritance
System.Object
RemoteNotificationHandler
Namespace: Io.Karte
Syntax
public class RemoteNotificationHandler

Methods

ExtractKarteAttributes(IDictionary<String, String>)

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

Declaration
public static KarteAttributes ExtractKarteAttributes(IDictionary<string, string> userInfo)
Parameters
Type Name Description
IDictionary<System.String, System.String> userInfo

通知メッセージ

Returns
Type Description
KarteAttributes

KarteAttributesインスタンスを返します。

HandleRemoteNotification(IDictionary<String, String>)

KARTE経由で送信された通知メッセージを処理します。処理内容はプラットフォームによって異なります。

iOS: 通知メッセージに含まれるディープリンクURLを開きます。

Android: 通知メッセージから、通知を作成します。

Declaration
public static bool HandleRemoteNotification(IDictionary<string, string> userInfo)
Parameters
Type Name Description
IDictionary<System.String, System.String> userInfo

通知メッセージ

Returns
Type Description
System.Boolean

処理結果を返します。

処理できた場合は true、できなかった場合は false を返します。

RetrieveURLFromUserInfo(IDictionary<String, String>)

KARTE経由で送信された通知メッセージに含まれるURLを返します。

Declaration
public static string RetrieveURLFromUserInfo(IDictionary<string, string> userInfo)
Parameters
Type Name Description
IDictionary<System.String, System.String> userInfo

通知メッセージ

Returns
Type Description
System.String

ディープリンクURLを返します。

In This Article
Back to top Generated by DocFX