DConnectProfile
クラスを継承すること。public abstract class ConnectionProfile extends DConnectProfile
スマートデバイスとのネットワーク接続情報を提供するAPI.
ネットワーク接続情報を提供するデバイスプラグインは当クラスを継承し、対応APIを実装すること。
AndroidManifest.xmlに追加する必要の有るパーミッション: wifi: ACCESS_WIFI_STATE,
CHANGE_WIFI_STATE bluetooth: BLUETOOTH, BLUETOOTH_ADMIN nfc: NFC
DConnectProfile.Responder
mApis, mLogger
コンストラクタと説明 |
---|
ConnectionProfile()
非推奨です。
|
修飾子とタイプ | メソッドと説明 |
---|---|
java.lang.String |
getProfileName()
非推奨です。
プロファイル名を取得する.
|
static void |
setConnectStatus(android.content.Intent message,
android.os.Bundle connectStatus)
非推奨です。
メッセージに接続状態を設定する.
|
static void |
setEnable(android.os.Bundle connectStatus,
boolean enable)
非推奨です。
接続状態パラメータに接続状態フラグを設定する.
|
static void |
setEnable(android.content.Intent response,
boolean enable)
非推奨です。
レスポンスに接続状態フラグを設定する.
|
addApi, findApi, findApi, getAccessToken, getApi, getApiList, getAttribute, getContentData, getContext, getData, getInterface, getOrigin, getPluginContext, getProduct, getProfile, getRequestCode, getResult, getService, getServiceID, getSessionKey, getVersion, hasApi, isEqual, isIgnoredProfile, isUseLocalOAuth, onRequest, parseBoolean, parseBoolean, parseByte, parseByte, parseDouble, parseDouble, parseFloat, parseFloat, parseInteger, parseInteger, parseLong, parseLong, parseShort, parseShort, removeApi, sendEvent, sendEvent, sendResponse, setAccessToken, setApi, setAttribute, setContext, setInterface, setPluginContext, setProduct, setProfile, setRequestCode, setResponder, setResult, setService, setServiceID, setSessionKey, setUnsupportedError, setVersion
public final java.lang.String getProfileName()
DConnectProfile
getProfileName
クラス内 DConnectProfile
public static void setEnable(android.content.Intent response, boolean enable)
response
- レスポンスパラメータenable
- ON:true、OFF:falsepublic static void setConnectStatus(android.content.Intent message, android.os.Bundle connectStatus)
message
- メッセージパラメータconnectStatus
- 接続状態パラメータpublic static void setEnable(android.os.Bundle connectStatus, boolean enable)
connectStatus
- 接続状態パラメータenable
- ON: true、OFF: false