TopLevelRequestPlatformInhibition Method
Requests a
PlatformInhibitionType to be inhibited.
The behavior remains inhibited until the return value is disposed.
The available set of
PlatformInhibitionTypes depends on the platform.
If a behavior is inhibited on a platform where this type is not supported the request will have no effect.
Namespace: Avalonia.ControlsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public Task<IDisposable> RequestPlatformInhibition(
PlatformInhibitionType type,
string reason
)
Public Function RequestPlatformInhibition (
type As PlatformInhibitionType,
reason As String
) As Task(Of IDisposable)
member RequestPlatformInhibition :
type : PlatformInhibitionType *
reason : string -> Task<IDisposable>
- type PlatformInhibitionType
-
- reason String
-
TaskIDisposable