Package org.robolectric.shadows
Interface ShadowMediaPlayer.CreateListener
-
- Enclosing class:
- ShadowMediaPlayer
public static interface ShadowMediaPlayer.CreateListener
Callback interface for clients that wish to be informed when a newMediaPlayer
instance is constructed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCreate(MediaPlayer player, ShadowMediaPlayer shadow)
Method that is invoked when a newMediaPlayer
is created.
-
-
-
Method Detail
-
onCreate
void onCreate(MediaPlayer player, ShadowMediaPlayer shadow)
Method that is invoked when a newMediaPlayer
is created. This method is invoked at the end of the constructor, after all of the default setup has been completed.- Parameters:
player
- reference to the newly-created media player object.shadow
- reference to the corresponding shadow object for the newly-created media player (provided for convenience).
-
-