Megosztás a következőn keresztül:


View.OnScreenStateChanged(ScreenState) Method

Definition

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

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

Parameters

screenState
ScreenState

The new state of the screen. Can be either #SCREEN_STATE_ON or #SCREEN_STATE_OFF

Attributes

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.)

Java documentation for android.view.View.onScreenStateChanged(int).

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