Language

Notification.Action.WearableExtender.SetAvailableOffline(Boolean) Method

Definition

Set whether this action is available when the wearable device is not connected to a companion device.

[Android.Runtime.Register("setAvailableOffline", "(Z)Landroid/app/Notification$Action$WearableExtender;", "")]
public Android.App.Notification.Action.WearableExtender SetAvailableOffline(bool availableOffline);
[<Android.Runtime.Register("setAvailableOffline", "(Z)Landroid/app/Notification$Action$WearableExtender;", "")>]
member this.SetAvailableOffline : bool -> Android.App.Notification.Action.WearableExtender

Parameters

availableOffline
Boolean

boolean

Returns

This Android.App.Notification.Action.WearableExtender instance, allowing calls to be chained.

Attributes

Remarks

Set whether this action is available when the wearable device is not connected to a companion device. The user can still trigger this action when the wearable device is offline, but a visual hint will indicate that the action may not be available. Defaults to true.

Android reference for android.app.Notification.Action.WearableExtender.setAvailableOffline.

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