-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(FEC-10081): as a front end developer I would like to be able to …
…be notified via events when floating player is toggled on/off (#10)
- Loading branch information
1 parent
1a2d97c
commit 41c9f52
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// @flow | ||
const EventType: PKEventTypes = { | ||
/** | ||
* Fired when the player got in or out of visibility (according to the minimum visible percentage threshold) | ||
*/ | ||
PLAYER_VISIBILITY_CHANGED: 'playervisibilitychanged', | ||
/** | ||
* Fired when the player started / stopped floating due to visibility change | ||
*/ | ||
FLOATING_PLAYER_STATE_CHANGED: 'floatingplayerstatechanged', | ||
/** | ||
* Fired when the player stopped floating due to end user dismissal | ||
*/ | ||
FLOATING_PLAYER_DISMISSED: 'floatingplayerdismissed' | ||
}; | ||
|
||
export {EventType}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters