语言

SFAuthorizationPluginView.SetButton(SFButtonType, Boolean) 方法

定义

启用或禁用指定的按钮。

[Foundation.Export("setButton:enabled:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SetButton(SecurityInterface.SFButtonType buttonType, bool enabled);
[<Foundation.Export("setButton:enabled:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetButton : SecurityInterface.SFButtonType * bool -> unit
override this.SetButton : SecurityInterface.SFButtonType * bool -> unit

参数

buttonType
SFButtonType

要启用或禁用的按钮。

enabled
Boolean

true 若要启用按钮,则为 false 若要禁用它,则为

特性

适用于