Notification.Builder.SetLights(Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method was deprecated in API level 26.
[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
int
- onMs
- Int32
int
- offMs
- Int32
int
Returns
This Android.App.Notification.Builder instance, allowing calls to be chained.
- Attributes
Remarks
This method was deprecated in API level 26. use NotificationChannel.enableLights(boolean) instead.
Set the desired color for the indicator LED on the device, as well as the blink duty cycle (specified in milliseconds). Not all devices will honor all (or even any) of these values.
See also:
Android reference for android.app.Notification.Builder.setLights.
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.