ওয়েব এপিআই

  • Revision slug: ওয়েবএপিআই
  • Revision title: ওয়েব এপিআই
  • Revision id: 458189
  • Created:
  • Creator: theanam
  • Is current revision? না
  • Comment

Revision Content

WebAPI is a term used to refer to a suite of device compatibility and access APIs that allow Web apps and content to access device hardware (such as battery status or the device vibration hardware), as well as access to data stored on the device (such as the calendar or contacts list). By adding these APIs, we hope to expand what the Web can do today and only proprietary platforms were able to do in the past.

Note: More of this documentation has been written than it looks like; links are not all added yet. We're actively working on improving this and expect to see things much better over the next couple of weeks. See the WebAPI doc status page, where we're tracking work on WebAPI docs.

Note: For a brief explanation of each badge, please see the packaged apps documentation.

যোগাযোগ এপিআই

নেটওয়ার্ক তথ্য এপিআই
বর্তমান নেটওয়ার্ক সম্পর্কে বিভিন্ন তথ্য সরবরাহ করে থাকে, যেমন সংযোগের গতি।
ব্লুটুথ {{CertifiedBadge}} {{NonStandardBadge}}
The WebBluetooth API provides low-level access to the device's Bluetooth hardware.
মোবাইল সংযোগ এপিআই{{CertifiedBadge}} {{NonStandardBadge}}
Exposes information about the device's cellular connectivity, such as signal strength, operator information, and so forth.
Network Stats API {{CertifiedBadge}} {{NonStandardBadge}}
Monitors data usage and exposes this data to privileged applications.
TCP Socket API {{PrivilegedBadge}} {{NonStandardBadge}}
Provides low-level sockets and SSL support.
Telephony {{CertifiedBadge}} {{NonStandardBadge}}
Lets apps place and answer phone calls and use the built-in telephony user interface.
WebSMS {{CertifiedBadge}} {{NonStandardBadge}}
Lets apps send and receive SMS text messages, as well as to access and manage the messages stored on the device.
WiFi Information API {{CertifiedBadge}} {{NonStandardBadge}}
A privileged API which provides information about signal strength, the name of the current network, available WiFi networks, and so forth.

Hardware access APIs

Ambient Light Sensor API
Provides access to the ambient light sensor, which lets your app detect the ambient light level in the vicinity of the device.
Battery Status API
Provides information about the battery's charge level and whether or not the device is currently plugged in and charging.
Geolocation API
Provides information about the device's physical location.
Pointer Lock API
Lets apps lock access to the mouse and gain access to movement deltas rather than absolute coordinates; this is great for gaming.
Proximity API
Lets you detect proximity of the device to a nearby object, such as the user's face.
Device Orientation API
Provides notifications when the device's orientation changes.
Screen Orientation API
Provides notifications when the screen's orientation changes. You can also use this API to let your app indicate what orientation it prefers.
Vibration API
Lets apps control the device's vibration hardware for things such as haptic feedback in games. This is not intended for things such as notification vibrations. See the Alarm API for that.
WebFM API {{InstalledBadge}} {{NonStandardBadge}}
Provides support for a device's FM radio functionality, if available.
Camera API {{CertifiedBadge}} {{NonStandardBadge}}
Allows apps to take photographs and/or record video using the device's built-in camera.
Power Management API {{CertifiedBadge}} {{NonStandardBadge}}
Lets apps turn on and off the screen, CPU, device power, and so forth. Also provides support for listening for and inspecting resource lock events.

View All...

তথ্য ব্যবস্থাপনা এপিআই

ফাইল ব্যবস্থাপনা এপিআই
Provides support for writable files with locking support.
ইনডেক্সড ডিবি
Client-side storage of structured data with support for high-performance searches.
Contacts API {{PrivilegedBadge}}
Provides access to the user's contacts database, with support for adding, reading, and modifying contact information.
Device Storage API {{PrivilegedBadge}} {{NonStandardBadge}}
Allows apps to create, read, and change files stored in a central location on the device, such as the "pictures" folder on modern desktop platforms or the photo storage on mobile devices.
Settings API {{CertifiedBadge}} {{NonStandardBadge}}
Lets apps examine and change system-wide configuration options that are permanently stored on the device.

Other APIs

Alarm API
Lets apps schedule notifications. Also provides support for automatically launching an app at a specific time.
Simple Push API
Lets the platform send notification messages to specific applications.
Apps API {{NonStandardBadge}}
The Open WebApps API provides support for installing and managing Web apps. In addition, support is provided to let apps determine payment information.
Web Activities {{NonStandardBadge}}
Lets an app delegate an activity to another app; for example, an app might ask another app to select (or create) and return a photo. Typically the user is able to configure what apps are used for which activities.
WebPayment API {{InstalledBadge}} {{NonStandardBadge}}
Lets Web content initiate payments and refunds for virtual goods.
Browser API {{PrivilegedBadge}} {{NonStandardBadge}}
Provides support for building a Web browser completely using Web technologies (in essence, a browser within a browser).
Idle API {{CertifiedBadge}}
Lets apps receive notifications when the user is not actively using the device.
Permissions API {{CertifiedBadge}} {{NonStandardBadge}}
Manages app permissions in a centralized location. Used by the Settings app.
Time/Clock API {{CertifiedBadge}} {{NonStandardBadge}}
Provides support for setting the current time. The time zone is set using the Settings API.

WebAPI community

If you need help with these APIs, there are several ways you can talk to other developers making use of them.

  • Consult the WebAPI forum: {{DiscussionList("dev-webapi", "mozilla.dev.webapi")}}
  • Visit the WebAPI IRC channel: #webapi

Don't forget about the netiquette...

 

Revision Source

<p><strong>WebAPI</strong> is a term used to refer to a suite of device compatibility and access APIs that allow Web apps and content to access device hardware (such as battery status or the device vibration hardware), as well as access to data stored on the device (such as the calendar or contacts list). By adding these APIs, we hope to expand what the Web can do today and only proprietary platforms were able to do in the past.</p>
<div class="note">
  <p><strong>Note:</strong> More of this documentation has been written than it looks like; links are not all added yet. We're actively working on improving this and expect to see things much better over the next couple of weeks. See the <a href="/en-US/docs/WebAPI/Doc_status" title="WebAPI/Doc_status">WebAPI doc status page</a>, where we're tracking work on WebAPI docs.</p>
</div>
<div class="note">
  <p><strong>Note:</strong> For a brief explanation of each badge, please see the <a href="/en-US/docs/Web/Apps/Packaged_apps#Types_of_packaged_apps" title="Web/Apps/Packaged_apps#Types_of_packaged_apps">packaged apps</a> documentation.</p>
</div>
<div class="row topicpage-table">
  <div class="section">
    <h2 class="Documentation" id="Communication_APIs" name="Communication_APIs">যোগাযোগ এপিআই</h2>
    <dl>
      <dt>
        <a href="/en-US/docs/WebAPI/Network_Information" title="WebAPI/Network_Information">নেটওয়ার্ক তথ্য এপিআই</a></dt>
      <dd>
        বর্তমান নেটওয়ার্ক সম্পর্কে বিভিন্ন তথ্য সরবরাহ করে থাকে, যেমন সংযোগের গতি।</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/WebBluetooth" title="WebAPI/WebBluetooth">ব্লুটুথ</a> {{CertifiedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        The WebBluetooth API provides low-level access to the device's Bluetooth hardware.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Mobile_Connection" title="WebAPI/Mobile_Connection">মোবাইল সংযোগ এপিআই</a>{{CertifiedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Exposes information about the device's cellular connectivity, such as signal strength, operator information, and so forth.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Network_Stats" title="WebAPI/Network_Stats">Network Stats API</a> {{CertifiedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Monitors data usage and exposes this data to privileged applications.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/TCP_Socket" title="WebAPI/TCP_Socket">TCP Socket API</a> {{PrivilegedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Provides low-level sockets and SSL support.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/WebTelephony" title="WebAPI/WebTelephony">Telephony</a> {{CertifiedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Lets apps place and answer phone calls and use the built-in telephony user interface.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/WebSMS" title="WebAPI/WebSMS">WebSMS </a>{{CertifiedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Lets apps send and receive SMS text messages, as well as to access and manage the messages stored on the device.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/WiFi_Information" title="WebAPI/WiFi_Information">WiFi Information API</a> {{CertifiedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        A privileged API which provides information about signal strength, the name of the current network, available WiFi networks, and so forth.</dd>
    </dl>
    <h2 class="Documentation" id="Hardware_access_APIs" name="Hardware_access_APIs">Hardware access APIs</h2>
    <dl>
      <dt>
        <a href="/en-US/docs/WebAPI/Using_Light_Events">Ambient Light Sensor API</a></dt>
      <dd>
        Provides access to the ambient light sensor, which lets your app detect the ambient light level in the vicinity of the device.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Battery_Status" title="WebAPI/Battery_Status">Battery Status API</a></dt>
      <dd>
        Provides information about the battery's charge level and whether or not the device is currently plugged in and charging.</dd>
      <dt>
        <a href="/en-US/docs/Using_geolocation" title="Using_geolocation">Geolocation API</a></dt>
      <dd>
        Provides information about the device's physical location.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Pointer_Lock" title="API/Pointer_Lock_API">Pointer Lock API</a></dt>
      <dd>
        Lets apps lock access to the mouse and gain access to movement deltas rather than absolute coordinates; this is great for gaming.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Proximity" title="WebAPI/Proximity">Proximity API</a></dt>
      <dd>
        Lets you detect proximity of the device to a nearby object, such as the user's face.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Detecting_device_orientation" title="WebAPI/Detecting_device_orientation">Device Orientation API</a></dt>
      <dd>
        Provides notifications when the device's orientation changes.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Managing_screen_orientation" title="WebAPI/Detecting_device_orientation">Screen Orientation API</a></dt>
      <dd>
        Provides notifications when the screen's orientation changes. You can also use this API to let your app indicate what orientation it prefers.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Vibration" title="WebAPI/WebBluetooth">Vibration API</a></dt>
      <dd>
        Lets apps control the device's vibration hardware for things such as haptic feedback in games. This is <strong>not</strong> intended for things such as notification vibrations. See the <a href="/en-US/docs/WebAPI/Alarm" title="WebAPI/Alarm">Alarm API</a> for that.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/WebFM_API" title="WebAPI/WebFM_API">WebFM API</a> {{InstalledBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Provides support for a device's FM radio functionality, if available.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Camera" title="WebAPI/Camera">Camera API</a> {{CertifiedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Allows apps to take photographs and/or record video using the device's built-in camera.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Power_Management" title="WebAPI/Power_Management">Power Management API </a>{{CertifiedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Lets apps turn on and off the screen, CPU, device power, and so forth. Also provides support for listening for and inspecting resource lock events.</dd>
    </dl>
    <p><span class="alllinks"><a href="/en-US/docs/tag/WebAPI" title="tag/CSS">View All...</a></span></p>
  </div>
  <div class="section">
    <h2 class="Documentation" id="Data_management_APIs" name="Data_management_APIs">তথ্য ব্যবস্থাপনা এপিআই</h2>
    <dl>
      <!--
      <dt><a href="/en-US/docs/WebAPI/Archive" title="WebAPI/Archive">Archive API</a> {{NonStandardBadge}}</dt>
      <dd>Support for accessing the contents of {{interwiki("wikipedia", "Zip")}} file archives in {{domxref("Blob")}} objects.</dd>
-->
      <dt>
        <a href="/en-US/docs/WebAPI/FileHandle_API" title="WebAPI/FileHandle_API">ফাইল ব্যবস্থাপনা এপিআই</a></dt>
      <dd>
        Provides support for writable files with locking support.</dd>
      <dt>
        <a href="/en-US/docs/IndexedDB" title="IndexedDB">ইনডেক্সড ডিবি</a></dt>
      <dd>
        Client-side storage of structured data with support for high-performance searches.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Contacts" title="WebAPI/Contacts">Contacts API</a> {{PrivilegedBadge}}</dt>
      <dd>
        Provides access to the user's contacts database, with support for adding, reading, and modifying contact information.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Device_Storage_API" title="WebAPI/Device_Storage_API">Device Storage API</a> {{PrivilegedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Allows apps to create, read, and change files stored in a central location on the device, such as the "pictures" folder on modern desktop platforms or the photo storage on mobile devices.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Settings" title="WebAPI/Settings">Settings API</a> {{CertifiedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Lets apps examine and change system-wide configuration options that are permanently stored on the device.</dd>
    </dl>
    <h2 class="Documentation" id="Other_APIs" name="Other_APIs">Other APIs</h2>
    <dl>
      <dt>
        <a href="/en-US/docs/WebAPI/Alarm" title="WebAPI/Alarm">Alarm API</a></dt>
      <dd>
        Lets apps schedule notifications. Also provides support for automatically launching an app at a specific time.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Simple_Push" title="WebAPI/Push_Notifications">Simple Push API</a></dt>
      <dd>
        Lets the platform send notification messages to specific applications.</dd>
      <dt>
        <a href="/en-US/docs/Apps" title="Apps">Apps API</a> {{NonStandardBadge}}</dt>
      <dd>
        The Open WebApps API provides support for installing and managing Web apps. In addition, support is provided to let apps determine payment information.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Web_Activities" title="WebAPI/Web_Activities">Web Activities</a> {{NonStandardBadge}}</dt>
      <dd>
        Lets an app delegate an activity to another app; for example, an app might ask another app to select (or create) and return a photo. Typically the user is able to configure what apps are used for which activities.</dd>
      <dt>
        <a href="/en-US/docs/Apps/Publishing/In-app_payments" title="Apps/Publishing/In-app_payments">WebPayment API</a> {{InstalledBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Lets Web content initiate payments and refunds for virtual goods.</dd>
      <dt>
        <a href="/en-US/docs/DOM/Using_the_Browser_API" title="DOM/Using_the_Browser_API"><strong>Browser API</strong></a> {{PrivilegedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Provides support for building a Web browser completely using Web technologies (in essence, a browser within a browser).</dd>
    </dl>
    <dl>
      <dt>
        <a href="/en-US/docs/WebAPI/Idle" title="WebAPI/Device_Storage_API">Idle API</a> {{CertifiedBadge}}</dt>
      <dd>
        Lets apps receive notifications when the user is not actively using the device.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Permissions" title="WebAPI/Permissions">Permissions API</a> {{CertifiedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Manages app permissions in a centralized location. Used by the Settings app.</dd>
      <dt>
        <a href="/en-US/docs/WebAPI/Time_and_Clock" title="WebAPI/Time_and_Clock">Time/Clock API</a> {{CertifiedBadge}} {{NonStandardBadge}}</dt>
      <dd>
        Provides support for setting the current time. The time zone is set using the <a href="/en-US/docs/WebAPI/Settings" title="WebAPI/Settings">Settings API</a>.</dd>
    </dl>
    <h2 class="Community" id="Community" name="Community">WebAPI community</h2>
    <p>If you need help with these APIs, there are several ways you can talk to other developers making use of them.</p>
    <ul>
      <li>Consult the WebAPI forum: {{DiscussionList("dev-webapi", "mozilla.dev.webapi")}}</li>
      <li>Visit the WebAPI IRC channel: <a href="irc://irc.mozilla.org/webapi" title="irc://irc.mozilla.org/webapi">#webapi</a></li>
    </ul>
    <p><span class="alllinks"><a href="http://www.catb.org/~esr/faqs/smart-questions.html" title="http://www.catb.org/~esr/faqs/smart-questions.html">Don't forget about the <em>netiquette</em>...</a></span></p>
    <h2 class="Related_Topics" id="Related_Topics" name="Related_Topics">Related Topics</h2>
    <ul>
      <li>The <a href="/en-US/docs/Document_Object_Model_(DOM)" title="Document Object Model (DOM)">Document Object Model (DOM)</a> is the representation of an HTML document as a tree.</li>
      <li><a href="/en-US/docs/JavaScript" title="JavaScript">JavaScript</a> - Scripting language for the Web.</li>
      <li><a href="/en-US/docs/WebAPI/Doc_status" title="WebAPI/Doc_status">Doc status</a>: A list of WebAPI topics and their documentation status.</li>
    </ul>
  </div>
</div>
<p>&nbsp;</p>
Revert to this revision