Package com.castlabs.android.player
Interface PlayerViewPlugin.PlayerViewComponent
- All Known Implementing Classes:
- PlayerViewPlugin.SingleViewPlayerViewComponent,- SubtitlesViewComponent
- Enclosing interface:
- PlayerViewPlugin
public static interface PlayerViewPlugin.PlayerViewComponent
Implementations of this view component can be used to gain controlled access to a
 
IPlayerView and its PlayerController.
 
 The component can use the IPlayerView or its PlayerController to add
 event listeners and get callbacks during the playback lifecycle.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int
- 
Method SummaryModifier and TypeMethodDescriptionCollection<? extends View>attachToPlayerView(PlayerView playerView) Create any necessary Views, attach them to the given PlayerView and return them.intWill be used by theIPlayerViewto decide in which order the different Components willattachtheir Views.id()Returns the class that is used to identify this component when it is registered with the player view.
- 
Field Details- 
POSITION_SUBTITLESstatic final int POSITION_SUBTITLES- See Also:
 
- 
POSITION_THUMBNAILSstatic final int POSITION_THUMBNAILS- See Also:
 
- 
POSITION_DEBUGstatic final int POSITION_DEBUG- See Also:
 
 
- 
- 
Method Details- 
getViewElevationint getViewElevation()Will be used by theIPlayerViewto decide in which order the different Components willattachtheir Views. Higher values will be called later, and thus being "higher" in terms of z-ordering.- Returns:
- the elevation required by this PlayerViewComponent
 
- 
idReturns the class that is used to identify this component when it is registered with the player view. This is what you need to pass toPlayerView.getComponent(Class)to get the registered instance of this component.- Returns:
- The class that identifies this component.
 
- 
attachToPlayerViewCreate any necessary Views, attach them to the given PlayerView and return them.- Parameters:
- playerView- the PlayerView to which attach the views
- Returns:
- The created Views.
 
 
-