View.OnScreenStateChanged(ScreenState) View.OnScreenStateChanged(ScreenState) Method


This method is called whenever the state of the screen this view is attached to changes.

[Android.Runtime.Register("onScreenStateChanged", "(I)V", "GetOnScreenStateChanged_IHandler", ApiSince=16)]
public virtual void OnScreenStateChanged (Android.Views.ScreenState screenState);
abstract member OnScreenStateChanged : Android.Views.ScreenState -> unit
override this.OnScreenStateChanged : Android.Views.ScreenState -> unit


ScreenState ScreenState

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


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