Skip to main content

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)

public Task<IDisposable> RequestPlatformInhibition(
PlatformInhibitionType type,
string reason
)
View Source

Parameters

  PlatformInhibitionType
 
  String
 

Return Value

Task(IDisposable)

See Also

Reference

TopLevel Class
Avalonia.Controls Namespace