SDK メソッド
権限ダイアログを手動で起動する
PushSDK.PushNotifications.showPermissionPrompt(completion = { granted, response, error ->
// オプションのコールバック
println("ユーザーが権限を許可しました: $granted")
}PushSDK.PushNotifications.showPermissionPrompt((granted, response, error) -> {
// オプションのコールバック
System.out.printf("ユーザーが権限を許可しました: %b", granted);
return null;
});購読者のプロフィールに属性を追加する
PushSDK.UserProfile.set(key="interests", value=listOf("politics", "news"))PushSDK.UserProfile.set("interests", List.of("politics", "news"));PushSDK.UserProfile.set(data=hashMapOf(
"is_paying_subscriber" to true,
"interests" to listOf("politics", "news")
))PushSDK.UserProfile.set(Map.of(
"is_paying_subscriber", true,
"interests", List.of("politics", "news")
));// 購読者の既存の興味に 'sports' を追加
PushSDK.UserProfile.append(key = "interests", values = listOf("sports"))
// 購読者の興味から 'fashion' と 'news' を削除
PushSDK.UserProfile.remove(key = "interests", values = listOf("fashion", "news"))// 購読者の既存の興味に 'sports' を追加
PushSDK.UserProfile.append("interests", List.of("sports"));
// 購読者の興味から 'fashion' と 'news' を削除
PushSDK.UserProfile.remove("interests", List.of("fashion", "news"));アクティビティの追跡(URL / 画面の訪問)
匿名の Push ID を取得する
購読者の外部IDを設定する
訪問者がすでに購読済みかどうかを判定する
訪問者がプロンプト表示の対象かどうかを判定する
ユーザー通知の一時停止 / 再開(ソフト購読解除)
ユーザーを完全に削除する
SDK のログレベルを設定する
最終更新