Skip to content

Commit

Permalink
[TIMOB-25045] Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed Sep 22, 2017
1 parent cfab0a4 commit f790134
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,7 @@ public class TiC
/**
* @module.api
*/
public static final String PROPERTY_ENABLE_VIBRATION = "enableVibrations";
public static final String PROPERTY_ENABLE_VIBRATION = "enableVibration";

/**
* @module.api
Expand Down
7 changes: 7 additions & 0 deletions apidoc/Titanium/Android/Android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2305,42 +2305,49 @@ properties:
Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level.
type: Number
permission: read-only
since: "7.0.0"

- name: IMPORTANCE_HIGH
summary: |
Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level.
type: Number
permission: read-only
since: "7.0.0"

- name: IMPORTANCE_LOW
summary: |
Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level.
type: Number
permission: read-only
since: "7.0.0"

- name: IMPORTANCE_MAX
summary: |
Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level.
type: Number
permission: read-only
since: "7.0.0"

- name: IMPORTANCE_MIN
summary: |
Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level.
type: Number
permission: read-only
since: "7.0.0"

- name: IMPORTANCE_NONE
summary: |
Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level.
type: Number
permission: read-only
since: "7.0.0"

- name: IMPORTANCE_UNSPECIFIED
summary: |
Used with [NotificationChannel](Titanium.Android.NotificationChannel) to specify an importance level.
type: Number
permission: read-only
since: "7.0.0"

- name: currentActivity
summary: Activity of the active context.
Expand Down
8 changes: 5 additions & 3 deletions apidoc/Titanium/Android/NotificationChannel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ examples:
Ti.Android.NotificationManager.notify(100, notification);
extends: Titanium.Proxy
since: "6.2.0"
since: "7.0.0"
osver: {android: {min: "8.0"}}
platforms: [android]

Expand All @@ -40,7 +40,7 @@ properties:
type: Boolean

- name: description
summary: user visible description of this channel.
summary: User visible description of this channel.
type: String

- name: enableLights
Expand All @@ -58,8 +58,8 @@ properties:
- name: importance
summary: The audio stream type to use when playing the sound.
description: Specify one of the `IMPORTANCE` constants from <Titanium.Android>.
constants: [Titanium.Android.IMPORTANCE_*]
type: Number
constants: [Titanium.Android.IMPORTANCE_*]

- name: id
summary: The channel id specified for the notification channel.
Expand All @@ -72,11 +72,13 @@ properties:
- name: lockscreenVisibility
summary: Whether or not notifications posted to this channel are shown on the lockscreen in full or redacted form.
type: Number
constants: [Titanium.Android.VISIBILITY_*]

- name: showBadge
summary: Whether notifications posted to this channel can appear as application icon badges in a Launcher.
type: Boolean

- name: vibratePattern
summary: The vibration pattern for notifications posted to this channel.
description: Specify the pattern in milliseconds as an array. (e.g [100, 100, 100, 400, 400, 100, 100, 100])
type: Array<Number>
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ methods:
- name: createNotificationChannel
osver: {android: {min: "8.0"}}
summary: Create a notification channel.
description: This will return `null` when used on Android versions lower than 8.0.
parameters:
- name: parameters
summary: Properties to set on a new object, including any defined by <Titanium.Android.NotificationChannel> except those marked not-creation or read-only.
Expand Down

0 comments on commit f790134

Please sign in to comment.