Android.Views.View.OnScreenStateChanged Method
This method is called whenever the state of the screen this view is attached to changes.

Syntax

[Android.Runtime.Register("onScreenStateChanged", "(I)V", "GetOnScreenStateChanged_IHandler")]
public virtual void OnScreenStateChanged ([Android.Runtime.GeneratedEnum] ScreenState screenState)

Parameters

screenState
The new state of the screen. Can be either View.ScreenStateOn or View.ScreenStateOff

Remarks

This method is called whenever the state of the screen this view is attached to changes. A state change will usually occurs when the screen turns on or off (whether it happens automatically or the user does it manually.)

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16