From: Hyunjin Park Date: Wed, 7 Oct 2015 02:48:23 +0000 (+0900) Subject: [WebAPI][application] remove doc for deprecated APIs X-Git-Tag: tizen_3.0/TD_SYNC/20161201~404 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c92e2a9cbcc545a80d0198f8c79dd710c8e8a8a;p=sdk%2Fonline-doc.git [WebAPI][application] remove doc for deprecated APIs Change-Id: I9e1179d7b2c52507d81e3d47c6601330a2593d64 Signed-off-by: Hyunjin park --- diff --git a/org.tizen.guides/html/web/tizen/application/application_w.htm b/org.tizen.guides/html/web/tizen/application/application_w.htm index b101a5d..2a1484b 100755 --- a/org.tizen.guides/html/web/tizen/application/application_w.htm +++ b/org.tizen.guides/html/web/tizen/application/application_w.htm @@ -41,7 +41,7 @@

The Application API provides you with application management and launch features which enable you to:

@@ -57,7 +57,6 @@
  • The getAppContext() and getAppsContext() methods of the ApplicationManager interface can be used to access the ApplicationContext interface (in mobile and wearable applications) to retrieve the application ID and context ID of the running application.
  • The application ID can be used to retrieve application information, or to launch an application. The context ID is a unique identifier given by the platform to a running application. -
  • Application change notifications

    You can receive notifications when there is a change in the list of installed applications.

    The setPackageInfoEventListener() method of the PackageManager interface in the Package API module registers an event listener which starts asynchronously. To unset the listener, use the unsetPackageInfoEventListener() method. You can use the PackageInformationEventCallback interface (in mobile and wearable applications) to define listener event handlers for receiving the notifications.

  • Application control

    You can launch other applications based on their functionality using the launchAppControl() method of the ApplicationManager interface.

  • Handling incoming application control requests

    You can handle an incoming application control request using the getRequestedAppControl() method of the Application interface. The RequestedApplicationControl interface (in mobile and wearable applications) is used to respond to incoming application control requests.

  • diff --git a/org.tizen.tutorials/html/web/tizen/application/application_tutorial_w.htm b/org.tizen.tutorials/html/web/tizen/application/application_tutorial_w.htm index dd5c481..f942ef3 100644 --- a/org.tizen.tutorials/html/web/tizen/application/application_tutorial_w.htm +++ b/org.tizen.tutorials/html/web/tizen/application/application_tutorial_w.htm @@ -27,8 +27,6 @@
  • Managing Applications
  • -
  • Receiving Notifications on Application List Changes -
  • Launching Applications with the Application Control
  • Handling Application Control Requests @@ -56,7 +54,6 @@ @@ -134,49 +131,7 @@ currApp.hide();
     currApp.exit();
     
  • - - -

    Receiving Notifications on Application List Changes

    - -

    Learning to receive notifications when the list of installed applications changes allows you to manage all the device applications from your application:

    -
      -
    1. Define the event handlers for different notifications by implementing the ApplicationInformationEventCallback listener interface (in mobile and wearable applications):

      - -
      -var appEventCB =
      -{
      -   /* When a new application is installed */
      -   oninstalled: function(appInfo)
      -   {
      -      console.log("Application " + appInfo.name + " installed");
      -   }
      -
      -   /* When an application is updated */
      -   onupdated: function(appInfo)
      -   {
      -      console.log("Application " + appInfo.name + " updated");
      -   }
      -
      -   /* When an application is uninstalled */
      -   onuninstalled: function(appId)
      -   {
      -      console.log("Application " + appId + " uninstalled");
      -   }
      -} 
      -
      -
    2. -
    3. Register the listener to use the defined event handlers:

      -
      -var listenerID = tizen.application.addAppInfoEventListener(appEventCB);
      -
      -
    4. -
    5. To stop receiving the notifications, use the removeAppInfoEventListener() method of the ApplicationManager interface (in mobile and wearable applications):

      -
      -tizen.application.removeAppInfoEventListener(listenerID);
      -
      -
    6. -
    - +

    Launching Applications with the Application Control

    Learning to use application controls to launch applications from your application allows you to take advantage of the functionality of other device applications: