次の方法で共有


WifiAwareManager.SetOpportunisticModeEnabled(Boolean) Method

Definition

[Android.Runtime.Register("setOpportunisticModeEnabled", "(Z)V", "GetSetOpportunisticModeEnabled_ZHandler", ApiSince=34)]
[Android.Runtime.RequiresPermission("android.permission.CHANGE_WIFI_STATE")]
public virtual void SetOpportunisticModeEnabled (bool enabled);
[<Android.Runtime.Register("setOpportunisticModeEnabled", "(Z)V", "GetSetOpportunisticModeEnabled_ZHandler", ApiSince=34)>]
[<Android.Runtime.RequiresPermission("android.permission.CHANGE_WIFI_STATE")>]
abstract member SetOpportunisticModeEnabled : bool -> unit
override this.SetOpportunisticModeEnabled : bool -> unit

Parameters

enabled
Boolean
Attributes

Applies to