Notification.Builder.SetLocalOnly(Boolean) Method

Definition

Set whether or not this notification should not bridge to other devices.

[Android.Runtime.Register("setLocalOnly", "(Z)Landroid/app/Notification$Builder;", "GetSetLocalOnly_ZHandler")]
public virtual Android.App.Notification.Builder SetLocalOnly(bool localOnly);
[<Android.Runtime.Register("setLocalOnly", "(Z)Landroid/app/Notification$Builder;", "GetSetLocalOnly_ZHandler")>]
abstract member SetLocalOnly : bool -> Android.App.Notification.Builder
override this.SetLocalOnly : bool -> Android.App.Notification.Builder

Parameters

localOnly
Boolean

boolean

Returns

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

Attributes

Remarks

Set whether or not this notification should not bridge to other devices. Some notifications can be bridged to other devices for remote display. This hint can be set to recommend this notification not be bridged.

Android reference for android.app.Notification.Builder.setLocalOnly.

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