Språk

ControlAction.IsValidResponse(Int32) Method

Definition

Checks whether the specified integer is a supported control-action response code.

[Android.Runtime.Register("isValidResponse", "(I)Z", "", ApiSince=30)]
public static bool IsValidResponse(int response);
[<Android.Runtime.Register("isValidResponse", "(I)Z", "", ApiSince=30)>]
static member IsValidResponse : int -> bool

Parameters

response
Int32

Value is one of the following: RESPONSE_UNKNOWN; RESPONSE_OK; RESPONSE_FAIL; RESPONSE_CHALLENGE_ACK; RESPONSE_CHALLENGE_PIN; RESPONSE_CHALLENGE_PASSPHRASE

Returns

true if response is from 0 through 5, inclusive; otherwise, false.

Attributes

Remarks

Android reference for android.service.controls.actions.ControlAction.isValidResponse.

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