Language

NsdFailure Enum

Definition

Enumerates values returned by several types and taken as a parameter of several types.

public enum NsdFailure
type NsdFailure = 
Inheritance
NsdFailure

Fields

Name Value Description
InternalError 0

Indicates that the operation failed due to an internal error.

AlreadyActive 3

Indicates that the operation failed because it is already active.

MaxLimit 4

Indicates that the operation failed because the maximum outstanding requests from the applications have reached.

OperationNotRunning 5

Indicates that the stop operation failed because it is not running.

BadParameters 6

Indicates that the operation failed because of invalid parameters.

PermissionDenied 7

Indicates that the operation failed because the caller did not have the required permissions. 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.

Remarks

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