Table of Contents

Method RequestPermission

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.Native.dll

RequestPermission(MacOSPermission)

Requests the specified macOS permission.

public bool RequestPermission(MacOSPermission permission)

Parameters

permission MacOSPermission

The permission to request.

Returns

bool

true if the permission was granted; otherwise, false.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaToolkitMacOS.MaaToolkitMacOSRequestPermission(System.Int32).

RequestPermission(MacOSPermission)

Requests the specified macOS permission.

public bool RequestPermission(MacOSPermission permission)

Parameters

permission MacOSPermission

The permission to request.

Returns

bool

true if the permission was granted; otherwise, false.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaToolkitMacOS.MaaToolkitMacOSRequestPermission(System.Int32).