Skip to content

Commit

Permalink
docs(api): fix AudioPlayer docs for accessor changes/deprecations/rem…
Browse files Browse the repository at this point in the history
…ovals
  • Loading branch information
sgtcoolguy committed Feb 8, 2021
1 parent 1bf2b7f commit ae8ad50
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions apidoc/Titanium/Media/AudioPlayer.yml
Expand Up @@ -99,24 +99,40 @@ methods:
returns:
type: Boolean
platforms: [iphone, ipad, macos]
deprecated:
since: "7.5.0"
removed: "10.0.0"
notes: Use the cross-platform API <Titanium.Media.AudioPlayer.paused> property instead.

- name: isPaused
summary: Returns the value of the [paused](Titanium.Media.AudioPlayer.paused) property.
returns:
type: Boolean
platforms: [android]
deprecated:
since: "7.5.0"
removed: "10.0.0"
notes: Use the cross-platform API <Titanium.Media.AudioPlayer.paused> property instead.

- name: getPlaying
summary: Returns the value of the [playing](Titanium.Media.AudioPlayer.playing) property.
returns:
type: Boolean
platforms: [iphone, ipad, macos]
deprecated:
since: "7.5.0"
removed: "10.0.0"
notes: Use the cross-platform API <Titanium.Media.AudioPlayer.playing> property instead.

- name: isPlaying
summary: Returns the value of the [playing](Titanium.Media.AudioPlayer.playing) property.
returns:
type: Boolean
platforms: [android]
deprecated:
since: "7.5.0"
removed: "10.0.0"
notes: Use the cross-platform API <Titanium.Media.AudioPlayer.playing> property instead.

- name: pause
summary: Pauses audio playback.
Expand Down Expand Up @@ -150,6 +166,7 @@ methods:
type: Boolean
deprecated:
since: "7.5.0"
removed: "10.0.0"
notes: Use the cross-platform API [Titanium.Media.AudioPlayer.pause](Titanium.Media.AudioPlayer.pause) instead.
platforms: [iphone, ipad, macos]

Expand Down Expand Up @@ -185,6 +202,9 @@ methods:
type: Number
since: "5.4.0"
platforms: [android]
deprecated:
since: "10.0.0"
notes: Use the [audioSessionId](Titanium.Media.AudioPlayer.audioSessionId) property instead

- name: start
summary: Starts or resumes audio playback.
Expand Down Expand Up @@ -424,6 +444,14 @@ properties:
default: false
availability: creation
platforms: [android]

- name: audioSessionId
summary: Returns the audio session id.
returns:
type: Number
since: "10.0.0"
platforms: [android]
permission: read-only

- name: audioType
summary: Changes the audio-stream-type.
Expand Down

0 comments on commit ae8ad50

Please sign in to comment.