RequestPlatformInhibition 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.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
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>