Language

Notification.WearableExtender.SetContentAction(Int32) メソッド

定義

この通知のアクションからのアクションをプライマリ アクションとして設定します。

[Android.Runtime.Register("setContentAction", "(I)Landroid/app/Notification$WearableExtender;", "")]
public Android.App.Notification.WearableExtender? SetContentAction(int actionIndex);
[<Android.Runtime.Register("setContentAction", "(I)Landroid/app/Notification$WearableExtender;", "")>]
member this.SetContentAction : int -> Android.App.Notification.WearableExtender

パラメーター

actionIndex
Int32

int: プライマリ アクションのインデックス。 ウェアラブルアクションがメイン通知に追加された場合、このインデックスはそのリストに適用され、それ以外の場合は通常のアクションリストに適用されます。

返品

この Android.App.Notification.WearableExtender インスタンス。呼び出しをチェーンできます。

属性

注釈

この通知のアクションからのアクションをプライマリ アクションとして設定します。 アクションに RemoteInput が関連付けられている場合、その入力のオプションへのショートカットが通知に直接表示されます。

android.app.Notification.WearableExtender.setContentActionの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象