From: Kyuho Jo Date: Tue, 29 Dec 2015 05:45:46 +0000 (+0900) Subject: Make links to mobile API references for notification and shortcut X-Git-Tag: tizen_3.0/TD_SYNC/20161201~250 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07d00bec0110c7f5d0ca30dd8cedb13b98cfa2be;p=sdk%2Fonline-doc.git Make links to mobile API references for notification and shortcut Change-Id: I08b0d151145f5d923abc8f84efd5c4414bc4a7d1 Signed-off-by: Kyuho Jo --- diff --git a/org.tizen.tutorials/html/native/app_framework/notification_tutorial_n.htm b/org.tizen.tutorials/html/native/app_framework/notification_tutorial_n.htm index 2bc0bed..0f3c5ab 100644 --- a/org.tizen.tutorials/html/native/app_framework/notification_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/app_framework/notification_tutorial_n.htm @@ -93,7 +93,7 @@

To initialize notifications:

-
  1. To use the functions and data types of the Notification API, include the <notification.h> header file in your application: +
    1. To use the functions and data types of the Notification API, include the <notification.h> header file in your application:
       #include <notification.h>
       
      @@ -113,7 +113,7 @@ free(shared_path);

      Creating a Notification

      Initialize a notification handle by calling the notification_create() function.

      -

      The parameter is the notification type, whose possible values are listed in the _notification_type enumeration.

      +

      The parameter is the notification type, whose possible values are listed in the _notification_type enumeration.

       notification = notification_create(NOTIFICATION_TYPE_ONGOING);
       if (notification != NULL)
      @@ -132,7 +132,7 @@ if (notification != NULL)
       
    2. Notification text:

      To set the text (title and content string) to display in the notification view, use the notification_set_text() function.

      -

      The second parameter defines the notification type, whose possible values are listed in the _notification_text_type enumeration.

      +

      The second parameter defines the notification type, whose possible values are listed in the _notification_text_type enumeration.

       int ret =0;
       ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, "text",
      @@ -161,7 +161,7 @@ if (ret != NOTIFICATION_ERROR_NONE)
       
    3. Notification image:

      To set the image to display in the notification view, use the notification_set_image() function.

      -

      The second parameter defines the notification image type, whose possible values are listed in the _notification_image_type enumeration.

      +

      The second parameter defines the notification image type, whose possible values are listed in the _notification_image_type enumeration.

       ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON, image_path);
       if (ret != NOTIFICATION_ERROR_NONE)
      @@ -174,7 +174,7 @@ if (ret != NOTIFICATION_ERROR_NONE)
       
    4. Notification display options:

      To set how applications display the notification, use the notification_set_display_applist() function.

      -

      The second parameter defines the notification display option, whose possible values are listed in the _notification_display_applist enumeration. You can set multiple options with the "|" pipe operation.

      +

      The second parameter defines the notification display option, whose possible values are listed in the _notification_display_applist enumeration. You can set multiple options with the "|" pipe operation.

       ret = notification_set_display_applist(notification,
                                              NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY | NOTIFICATION_DISPLAY_APP_TICKER);
      @@ -190,7 +190,7 @@ if (ret != NOTIFICATION_ERROR_NONE)
       

      To set the LED options for a notification, use the notification_set_led() and notification_set_led_time_period() functions:

      • -

        The notification_set_led() function sets the LED operation. The second parameter defines the LED notification, whose values are listed in the _notification_led_op enumeration.

        +

        The notification_set_led() function sets the LED operation. The second parameter defines the LED notification, whose values are listed in the _notification_led_op enumeration.

      • @@ -214,7 +214,7 @@ if (ret != NOTIFICATION_ERROR_NONE)
      • Notification properties:

        To set a notification property, use the notification_set_property() function.

        -

        The second parameter defines the notification property, whose possible values are listed in the _notification_property enumeration. You can set multiple properties with the "|" pipe operation.

        +

        The second parameter defines the notification property, whose possible values are listed in the _notification_property enumeration. You can set multiple properties with the "|" pipe operation.

         ret = notification_set_property(notification, NOTIFICATION_PROP_DISABLE_APP_LAUNCH);
         if (ret != NOTIFICATION_ERROR_NONE)
        @@ -228,10 +228,10 @@ if (ret != NOTIFICATION_ERROR_NONE)
         

        To add a button on the active notification, use the notification_add_button() and notification_set_event_handler() functions:

        • -

          The notification_add_button() adds the button. The second parameter defines the button index, whose possible values are listed in the _notification_button_index enumeration.

          +

          The notification_add_button() adds the button. The second parameter defines the button index, whose possible values are listed in the _notification_button_index enumeration.

        • -

          The notification_set_event_handler() function defines the application control that launches the application at the button click. The third parameter defines the app control handle, whose possible values are listed in the _notification_event_type enumeration.

          +

          The notification_set_event_handler() function defines the application control that launches the application at the button click. The third parameter defines the app control handle, whose possible values are listed in the _notification_event_type enumeration.

           noti_err = notification_add_button(noti, NOTIFICATION_BUTTON_1);
          diff --git a/org.tizen.tutorials/html/native/app_framework/shortcut_tutorial_n.htm b/org.tizen.tutorials/html/native/app_framework/shortcut_tutorial_n.htm
          index 3370fd1..9f18f44 100644
          --- a/org.tizen.tutorials/html/native/app_framework/shortcut_tutorial_n.htm
          +++ b/org.tizen.tutorials/html/native/app_framework/shortcut_tutorial_n.htm
          @@ -57,7 +57,7 @@
           
           
            -
          1. To use the functions and data types of the Shortcut API, include the <shortcut_manager.h> header file in your application:

            +
          2. To use the functions and data types of the Shortcut API, include the <shortcut_manager.h> header file in your application:

             #include <shortcut_manager.h>