Language

NsdManager.FailurePermissionDenied Field

Definition

Caution

This constant will be removed in the future version. Use Android.Net.Nsd.NsdFailure enum directly instead of this field.

Indicates that the operation failed because the caller did not have the required permissions.

[Android.Runtime.Register("FAILURE_PERMISSION_DENIED", ApiSince=37)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Net.Nsd.NsdFailure enum directly instead of this field.", true)]
public const Android.Net.Nsd.NsdFailure FailurePermissionDenied = 7;
[<Android.Runtime.Register("FAILURE_PERMISSION_DENIED", ApiSince=37)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Net.Nsd.NsdFailure enum directly instead of this field.", true)>]
val mutable FailurePermissionDenied : Android.Net.Nsd.NsdFailure

Field Value

Value = 7
Attributes

Remarks

This can occur during resolution, discovery, or callback registration when the caller lacks the android.permission.ACCESS_LOCAL_NETWORK permission. The failure is reported through OnResolveFailed(NsdServiceInfo, NsdFailure), OnStartDiscoveryFailed(String, NsdFailure), or OnServiceInfoCallbackRegistrationFailed(NsdFailure).

Android reference for android.net.nsd.NsdManager.FAILURE_PERMISSION_DENIED.

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