语言

ControlAction.IsValidResponse(Int32) 方法

定义

检查指定的整数是否为受支持的控制操作响应代码。

[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

参数

response
Int32

值为下列值之一:RESPONSE_UNKNOWN;RESPONSE_OK;RESPONSE_FAIL;RESPONSE_CHALLENGE_ACK;RESPONSE_CHALLENGE_PIN;RESPONSE_CHALLENGE_PASSPHRASE

返回

true 如果 response 为 0 到 5,则为非独占;否则为 false。

属性

注解

Android 参考。android.service.controls.actions.ControlAction.isValidResponse

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于