DConnectProfile
クラスを継承すること。public class ProximityProfile extends DConnectProfile
スマートデバイスの近接センサーの検知通知を提供するAPI.
スマートデバイスの近接センサーの検知通知を提供するデバイスプラグインは当クラスを継承し、対応APIを実装すること。
DConnectProfile.Responder
mApis, mLogger
コンストラクタと説明 |
---|
ProximityProfile()
非推奨です。
|
修飾子とタイプ | メソッドと説明 |
---|---|
java.lang.String |
getProfileName()
非推奨です。
プロファイル名を取得する.
|
static void |
setMax(android.os.Bundle proximity,
double max)
非推奨です。
メッセージに近接距離の最大値を設定する.
|
static void |
setMin(android.os.Bundle proximity,
double min)
非推奨です。
メッセージに近接距離の最小値を設定する.
|
static void |
setNear(android.os.Bundle message,
boolean near)
非推奨です。
メッセージに近接の有無を設定する.
|
static void |
setProximity(android.content.Intent message,
android.os.Bundle proximity)
非推奨です。
メッセージに近接センサー情報を設定する.
|
static void |
setRange(android.os.Bundle message,
Range range)
非推奨です。
メッセージに距離識別子を設定する.
|
static void |
setThreshold(android.os.Bundle proximity,
double threshold)
非推奨です。
メッセージに閾値を設定する.
|
static void |
setValue(android.os.Bundle proximity,
double value)
非推奨です。
メッセージに近接距離を設定する.
|
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 setValue(android.os.Bundle proximity, double value)
proximity
- メッセージパラメータvalue
- 近接距離public static void setMin(android.os.Bundle proximity, double min)
proximity
- メッセージパラメータmin
- 最小値public static void setMax(android.os.Bundle proximity, double max)
proximity
- メッセージパラメータmax
- 最大値public static void setThreshold(android.os.Bundle proximity, double threshold)
proximity
- メッセージパラメータthreshold
- 閾値public static void setProximity(android.content.Intent message, android.os.Bundle proximity)
message
- メッセージパラメータproximity
- 近接センサー情報public static void setNear(android.os.Bundle message, boolean near)
message
- メッセージパラメータnear
- 近接の有無(true: 近接している、false: 近接していない)public static void setRange(android.os.Bundle message, Range range)
message
- メッセージパラメータrange
- 近接識別子