Notification.Builder.SetContentIntent(PendingIntent) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
通知がクリックされたときに送信される PendingIntent を指定します。
[Android.Runtime.Register("setContentIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;", "GetSetContentIntent_Landroid_app_PendingIntent_Handler")]
public virtual Android.App.Notification.Builder SetContentIntent(Android.App.PendingIntent? intent);
[<Android.Runtime.Register("setContentIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;", "GetSetContentIntent_Landroid_app_PendingIntent_Handler")>]
abstract member SetContentIntent : Android.App.PendingIntent -> Android.App.Notification.Builder
override this.SetContentIntent : Android.App.PendingIntent -> Android.App.Notification.Builder
パラメーター
- intent
- PendingIntent
PendingIntent
返品
この Android.App.Notification.Builder インスタンス。呼び出しをチェーンできます。
- 属性
注釈
通知がクリックされたときに送信される PendingIntent を指定します。 Android Build.VERSION_CODESの時点。S、API レベルを対象とするアプリBuild.VERSION_CODES。S 以降では、通知のクリックに応じてブロードキャスト レシーバーまたはサービスの処理中にアクティビティを開始できません。 このような場合にアクティビティを起動するには、アクティビティ自体に PendingIntent を指定します。 Build.VERSION_CODES時点。このフィールドが設定されておらず、setContent(RemoteViews) でカスタム RemoteView を指定している場合は、RemoteViews.setOnClickPendingIntent(int,PendingIntent) を使用して、そのカスタム レイアウト内の個々のビューに PendingIntents を割り当てることができます (つまり、通知ビュー内にクリック可能なボタンを作成します)。
関連項目も参照:
android.app.Notification.Builder.setContentIntentの Android リファレンス。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。