Notification.Builder.SetLights(Int32, Int32, Int32) Method

Definition

Set the desired color for the indicator LED on the device, as well as the blink duty cycle (specified in milliseconds).

[Android.Runtime.Register("setLights", "(III)Landroid/app/Notification$Builder;", "GetSetLights_IIIHandler")]
public virtual Android.App.Notification.Builder? SetLights (int argb, int onMs, int offMs);
[<Android.Runtime.Register("setLights", "(III)Landroid/app/Notification$Builder;", "GetSetLights_IIIHandler")>]
abstract member SetLights : int * int * int -> Android.App.Notification.Builder
override this.SetLights : int * int * int -> Android.App.Notification.Builder

Parameters

argb
Int32

The LED color to use.

onMs
Int32

The number of milliseconds for the LED to remain on per blink cycle.

offMs
Int32

The number of milliseconds for the LED to remain off per blink cycle.

Returns

Attributes

Remarks

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

See also