Language

Notification.WearableExtender.SetDisplayIntent(PendingIntent) Method

Definition

This method was deprecated in API level 29.

[Android.Runtime.Register("setDisplayIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$WearableExtender;", "")]
public Android.App.Notification.WearableExtender? SetDisplayIntent(Android.App.PendingIntent? intent);
[<Android.Runtime.Register("setDisplayIntent", "(Landroid/app/PendingIntent;)Landroid/app/Notification$WearableExtender;", "")>]
member this.SetDisplayIntent : Android.App.PendingIntent -> Android.App.Notification.WearableExtender

Parameters

intent
PendingIntent

PendingIntent: the PendingIntent for an activity

Returns

this object for method chaining

Attributes

Remarks

This method was deprecated in API level 29. Display intents are no longer supported.

Set an intent to launch inside of an activity view when displaying this notification. The PendingIntent provided should be for an activity. The activity to launch needs to allow embedding, must be exported, and should have an empty task affinity. It is also recommended to use the device default light theme. Example AndroidManifest.xml entry:

See also:

Android reference for android.app.Notification.WearableExtender.setDisplayIntent.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to