package Ġcom . react native aud i ow ave form . event . player Ċ Ċ import Ġcom . facebook . react . bridge . Arguments Ċ import Ġcom . facebook . react . bridge . Writable Map Ċ import Ġcom . facebook . react . u im an ager . events . Event Ċ Ċ import Ġcom . facebook . react . u im an ager . events . RCT EventEmitter Ċ import Ġcom . react native aud i ow ave form . audio . player . model . Play State Ċ Ċ class ĠOn Player State Event ( view Tag : ĠInt , Ġprivate Ġval Ġplay State : ĠPlay State ) Ġ: ĠEvent < On Player State Event >( view Tag ) Ġ{ ĊĠ Ġoverride Ġfun Ġdispatch ( r ct EventEmitter : ĠR CT EventEmitter ) Ġ{ ĊĠĠĠ Ġval Ġdata : ĠWrit able Map Ġ= ĠArguments . create Map () ĊĠĠĠ Ġdata . putString (" play State ", Ġplay State . name ) ĊĠĠĠ Ġr ct EventEmitter . receive Event ( view Tag , ĠeventName , Ġdata ) ĊĠ Ġ} ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġconst Ġval ĠEVENT _ NAME Ġ= Ġ" on Player State " ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġget Event Name (): ĠString Ġ{ ĊĠĠĠ Ġreturn ĠEVENT _ NAME ĊĠ Ġ} Ċ } Ċ