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.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public Task<IDisposable> RequestPlatformInhibition(
	PlatformInhibitionType type,
	string reason
)

Parameters

type  PlatformInhibitionType
 
reason  String
 

Return Value

TaskIDisposable

See Also