语言

SFAuthorizationView.Authorize(NSObject) 方法

定义

尝试授权。

[Foundation.Export("authorize:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool Authorize(Foundation.NSObject? sender);
[<Foundation.Export("authorize:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Authorize : Foundation.NSObject -> bool
override this.Authorize : Foundation.NSObject -> bool

参数

sender
NSObject

启动授权的对象,或 null。

返回

true 如果授权成功,则为否则,为 false.

特性

适用于