From bdc8b324853547df8657f31ecf7aa7058d5d87e4 Mon Sep 17 00:00:00 2001 From: Szymon Jastrzebski Date: Wed, 11 Oct 2017 12:02:36 +0200 Subject: [PATCH] [Application] Updating getBatteryUsageInfo() and getAppsUsageInfo() methods + New native feature key http://tizen.org/feature/app_history is being introduced into Tizen 4.0, this requires to add it into the 'Related Feature' section. + Currently, mentioned methods are available only on mobile profile, now we can expand it to wearable profile. PS3: Reviewed Change-Id: I0ddce465b1ad0d2df227d94a8530979e499d3c77 Signed-off-by: Szymon Jastrzebski --- org.tizen.guides/html/web/app_management/app_controls_w.htm | 8 ++++---- org.tizen.training/html/web/details/app_filtering_w.htm | 10 ++++++++++ .../html/device_api/mobile/tizen/application.html | 12 ++++++++++-- .../html/device_api/wearable/tizen/application.html | 12 ++++++++++-- 4 files changed, 34 insertions(+), 8 deletions(-) diff --git a/org.tizen.guides/html/web/app_management/app_controls_w.htm b/org.tizen.guides/html/web/app_management/app_controls_w.htm index 27afb80..e425ab3 100644 --- a/org.tizen.guides/html/web/app_management/app_controls_w.htm +++ b/org.tizen.guides/html/web/app_management/app_controls_w.htm @@ -300,10 +300,10 @@ window.addEventListener('appcontrol', function onAppControl() {
  • Retrieve information about running applications with the getAppContext() and getAppsContext() methods of the ApplicationManager interface.

    These methods can be used to access the ApplicationContext interface (in mobile, wearable, and TV 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.

  • -
  • Retrieve information about battery usage per application with the getBatteryUsageInfo() method of the ApplicationManager interface in mobile applications only. -

    You can retrieve battery usage information starting from a specific number of days ago, or since the battery was last fully charged. You can also select the number of applications included in the returned ApplicationBatteryUsage data array.

  • -
  • Retrieve information about usage statistics per application with the getAppsUsageInfo() method of the ApplicationManager interface in mobile applications only. -

    The statistics include the most frequently or recently used applications. You can retrieve application usage information from a specific time period, or starting from a specific number of days ago. You can also select the number of applications included in the returned ApplicationUsage data array.

  • +
  • Retrieve information about battery usage per application with the getBatteryUsageInfo() method of the ApplicationManager interface in mobile and wearable applications only. +

    You can retrieve battery usage information starting from a specific number of days ago, or since the battery was last fully charged. You can also select the number of applications included in the returned ApplicationBatteryUsage data array (in mobile and wearable applications).

  • +
  • Retrieve information about usage statistics per application with the getAppsUsageInfo() method of the ApplicationManager interface in mobile and wearable applications only. +

    The statistics include the most frequently or recently used applications. You can retrieve application usage information from a specific time period, or starting from a specific number of days ago. You can also select the number of applications included in the returned ApplicationUsage data array (in mobile and wearable applications).

  • Learning how to retrieve information about installed and running applications allows you to manage all the device applications from your application:

    diff --git a/org.tizen.training/html/web/details/app_filtering_w.htm b/org.tizen.training/html/web/details/app_filtering_w.htm index 363db97..dab53e1 100644 --- a/org.tizen.training/html/web/details/app_filtering_w.htm +++ b/org.tizen.training/html/web/details/app_filtering_w.htm @@ -244,6 +244,11 @@ 4.0 +http://tizen.org/feature/app_history + Specify this key, if the application requires the application history feature. + 4.0 + + http://tizen.org/feature/battery Specify this key, if the application requires information on the device battery. 2.3* @@ -549,6 +554,11 @@ 4.0 +http://tizen.org/feature/app_history + Specify this key, if the application requires the application history feature. + 4.0 + + http://tizen.org/feature/battery Specify this key, if the application requires information on the device battery. 2.3* diff --git a/org.tizen.web.apireference/html/device_api/mobile/tizen/application.html b/org.tizen.web.apireference/html/device_api/mobile/tizen/application.html index 7dc77d4..6ad4ac2 100755 --- a/org.tizen.web.apireference/html/device_api/mobile/tizen/application.html +++ b/org.tizen.web.apireference/html/device_api/mobile/tizen/application.html @@ -1294,7 +1294,7 @@ InvalidValuesError - if any of the input parameters contains an invalid value. http://tizen.org/privilege/apphistory.read

    Remark : - This method is available only on mobile devices. An attempt to call this method on other profile will result in throwing NotSupportedError exception. + This method is available only on mobile and wearable devices. An attempt to call this method on other profile will result in throwing NotSupportedError exception.

    Parameters:

    @@ -1403,7 +1403,7 @@ InvalidValuesError - if any of the input parameters contains an invalid value. http://tizen.org/privilege/apphistory.read

    Remark : - This method is available only on mobile devices. + This method is available only on mobile and wearable devices. An attempt to call this method on other profile will result in throwing NotSupportedError exception.

    @@ -3373,6 +3373,14 @@ Must be at least 1 byte in length and not exceed the maximum name length of 127

    +To guarantee the running of the application on a device which supports Application History feature, declare the following feature requirement in the config file: +

    +

    +
  • http://tizen.org/feature/app_history
  • +
    +
    +

    +

    To guarantee the running of the application on a device which has battery, declare the following feature requirement in the config file:

    diff --git a/org.tizen.web.apireference/html/device_api/wearable/tizen/application.html b/org.tizen.web.apireference/html/device_api/wearable/tizen/application.html index fb957c6..aef47e9 100755 --- a/org.tizen.web.apireference/html/device_api/wearable/tizen/application.html +++ b/org.tizen.web.apireference/html/device_api/wearable/tizen/application.html @@ -1287,7 +1287,7 @@ InvalidValuesError - if any of the input parameters contains an invalid value. http://tizen.org/privilege/apphistory.read

    Remark : - This method is available only on mobile devices. An attempt to call this method on other profile will result in throwing NotSupportedError exception. + This method is available only on mobile and wearable devices. An attempt to call this method on other profile will result in throwing NotSupportedError exception.

    Parameters:

    @@ -1396,7 +1396,7 @@ InvalidValuesError - if any of the input parameters contains an invalid value. http://tizen.org/privilege/apphistory.read

    Remark : - This method is available only on mobile devices. + This method is available only on mobile and wearable devices. An attempt to call this method on other profile will result in throwing NotSupportedError exception.

    @@ -3366,6 +3366,14 @@ Must be at least 1 byte in length and not exceed the maximum name length of 127

    +To guarantee the running of the application on a device which supports Application History feature, declare the following feature requirement in the config file: +

    +

    +
  • http://tizen.org/feature/app_history
  • +
    +
    +

    +

    To guarantee the running of the application on a device which has battery, declare the following feature requirement in the config file:

    -- 2.7.4