Package com.castlabs.android.player

# Interface PlayerViewPlugin

public interface PlayerViewPlugin
A plugin interface that can be used to create plugins that need access to the `IPlayerView` or the `PlayerController` that is responsible for the playback lifecycle.

Since:
  3.2.2

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Interface
  Description
  `static interface`
  `PlayerViewPlugin.PlayerViewComponent`
  Implementations of this view component can be used to gain controlled access to a `IPlayerView` and its `PlayerController`.
  `static class`
  `PlayerViewPlugin.SingleViewPlayerViewComponent<ViewType extends View>`
  Helper class which extracts all the common logic in a `PlayerViewPlugin.PlayerViewComponent` in case it only operates on one single View.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `PlayerViewPlugin.PlayerViewComponent`
  `create()`
  Creates and returns a new instance of the `PlayerViewPlugin.PlayerViewComponent` that is provided by this plugin

- ## Method Details

  - ### create

    @Nullable PlayerViewPlugin.PlayerViewComponent create()
    Creates and returns a new instance of the `PlayerViewPlugin.PlayerViewComponent` that is provided by this plugin
    Returns:
      playerViewComponent a new component