語言

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 來停用它。

屬性

適用於