Skip to main content
A newer version of this page is available. .

ON.OrientationChanged<T>(T, Action<T>) Method

Allows you to perform custom actions when the screen orientation changes.

Namespace: DevExpress.Maui.Core

Assembly: DevExpress.Maui.Core.dll

NuGet Package: DevExpress.Maui.Core

Declaration

public static IDisposable OrientationChanged<T>(
    T listener,
    Action<T> handler
)
    where T : class

Parameters

Name Type Description
listener T

The object that subscribes to the OrientationChanged event.

handler Action<T>

A method that handles the OrientationChanged event.

Type Parameters

Name
T

Returns

Type Description
IDisposable

An object that restores the handler when needed.

Remarks

For more information, refer to the following section: ON

See Also