26. • Firefox OS の管理する
リソースに対する操作
• ハードウェアの操作
• 通知のコントロール
• etc
• JavaScript から呼び出す
Web API
26
27. 現在提供されているWeb API
• コミュニケーション
Network Information API, Bluetooth, Mobile
Connection API, Network Stats API, TCP Socket API,
Telephony, WebSMS, WiFi Information API
• ハードウェアアクセス
Ambient Light Sensor API, Battery Status API,
Geolocation API, Pointer Lock API, Proximity API,
Device Orientation API, Screen Orientation API,
Vibration API, WebFM API, Camera API, Power
Management API
27
28. 現在提供されているWeb API(つづき)
• データ管理
FileHandle API, IndexedDB, Contacts API, Device
Storage API, Settings API
• その他
Alarm API, Simple Push, Web Notifications, Apps
API, Web Activities, WebPayment API, Browser API,
Idle API, Permissions API, Time/Clock API
28
29. Vibration API
var pattern =
[100,30,100,30,100,200,200,30,200,30,200,200,
100,30,100,30,100];
navigator.vibrate(pattern);
// Vibrate 'SOS' in Morse.
29