-
Notifications
You must be signed in to change notification settings - Fork 8
KeyEvent Profile
Onuzimoyr edited this page Nov 17, 2015
·
2 revisions
| API | 機能概要 |
|---|---|
| Key Down Event API | デバイスのキーが押されたことを通知する。 |
| Key Up Event API | デバイスのキーが離されたことを通知する。 |
デバイスのキーイベントが操作されたことを通知する機能。
なし
| インターフェース名称 | Version | 種別 |
|---|---|---|
| Key Down Event API | 2.0.0 | 非同期I/F(イベントI/F) |
デバイスのキーが押されたことを通知する。
| イベント名 | Content-Type |
|---|---|
| /gotapi/keyevent/ondown | application/json |
| 論理名 | 物理名 | データ型 | 省略 | 設定値 | |
| オブジェクト | keyevent | object | - | KeyEvent(object) | |
| 属性値 | id | number | - | 押されたKeyのID。 | |
| 属性値 | config | string | ○ | 押されたKeyのConfig | |
{
"product":"Device Connect Manager",
"version":"x.x",
"serviceId": “device1.localhost.deviceconnect.org",
“api”: “gotapi”,
"profile" : “keyevent”,
"attribute" : "ondown",
"sessionKey" : "0a93ac0aade4e046ed63eb24d1172f5f35c88ca60daa901547c28d5827cb418a5de1d7c5f9e62405",
"keyevent" : {
“id":525,
"config":"play"
}
}
| インターフェース名称 | Version | 種別 |
|---|---|---|
| Key Up Event API | 2.0.0 | 非同期I/F(イベントI/F) |
デバイスのキーが話されたことを通知する。
| イベント名 | Content-Type |
|---|---|
| /gotapi/keyevent/onup | application/json |
| 論理名 | 物理名 | データ型 | 省略 | 設定値 | |
| オブジェクト | keyevent | object | - | KeyEvent(object) | |
| 属性値 | id | number | - | 押されたKeyのID。 | |
| 属性値 | config | string | ○ | 押されたKeyのConfig | |
{
"product":"Device Connect Manager",
"version":"x.x",
"serviceId": “device1.localhost.deviceconnect.org",
“api”: “gotapi”,
"profile" : “keyevent”,
"attribute" : "onup",
"sessionKey" : "0a93ac0aade4e046ed63eb24d1172f5f35c88ca60daa901547c28d5827cb418a5de1d7c5f9e62405",
"keyevent" : {
“id":525,
"config":"play"
}
}