Castify SDK
2.0.2
Castify SDK
/
jp.castify.api
/
Player
/
Callback
Callback
interface
Callback
Player
が発信するイベントを受け取るためのコールバックです。
Functions
Functions
on
Playlist
Link copied to clipboard
open
fun
onPlaylist
(
host
:
Player
,
playlist
:
Playlist
)
プレイリストを受信したときに呼び出されます。
on
State
Change
Link copied to clipboard
abstract
fun
onStateChange
(
host
:
Player
,
state
:
Player.State
,
cause
:
Throwable
?
=
null
)
Player
の状態が変化したときに呼び出されます。
on
Timer
Link copied to clipboard
open
fun
onTimer
(
host
:
Player
,
time
:
Double
)
再生位置を定期的に通知します。