共用方式為


WifiManager.LocalOnlyHotspotCallback.OnFailed Method

Definition

LocalOnlyHotspot failed to start.

[Android.Runtime.Register("onFailed", "(I)V", "GetOnFailed_IHandler", ApiSince=26)]
public virtual void OnFailed (Android.Net.Wifi.LocalOnlyHotspotCallbackErrorCode reason);
[<Android.Runtime.Register("onFailed", "(I)V", "GetOnFailed_IHandler", ApiSince=26)>]
abstract member OnFailed : Android.Net.Wifi.LocalOnlyHotspotCallbackErrorCode -> unit
override this.OnFailed : Android.Net.Wifi.LocalOnlyHotspotCallbackErrorCode -> unit

Parameters

reason
LocalOnlyHotspotCallbackErrorCode

The reason for failure could be one of: #ERROR_TETHERING_DISALLOWED, #ERROR_INCOMPATIBLE_MODE, #ERROR_NO_CHANNEL, or #ERROR_GENERIC.

Attributes

Remarks

LocalOnlyHotspot failed to start.

Applications can attempt to call WifiManager#startLocalOnlyHotspot(LocalOnlyHotspotCallback, Handler) again at a later time.

Java documentation for android.net.wifi.WifiManager.LocalOnlyHotspotCallback.onFailed(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to