Class FadeViewHelper
-
- All Implemented Interfaces:
-
com.pierfrancescosoffritti.androidyoutubeplayer.core.player.listeners.YouTubePlayerListener
public final class FadeViewHelper implements YouTubePlayerListener
-
-
Field Summary
Fields Modifier and Type Field Description public final static LongDEFAULT_ANIMATION_DURATIONpublic final static LongDEFAULT_FADE_OUT_DELAYprivate BooleanisDisabledprivate LonganimationDurationprivate LongfadeOutDelayprivate final ViewtargetView
-
Constructor Summary
Constructors Constructor Description FadeViewHelper(View targetView)
-
Method Summary
Modifier and Type Method Description final BooleanisDisabled()final UnitsetDisabled(Boolean isDisabled)final LonggetAnimationDuration()Duration of the fade animation in milliseconds. final UnitsetAnimationDuration(Long animationDuration)Duration of the fade animation in milliseconds. final LonggetFadeOutDelay()Delay after which the view automatically fades out. final UnitsetFadeOutDelay(Long fadeOutDelay)Delay after which the view automatically fades out. final ViewgetTargetView()final UnittoggleVisibility()UnitonStateChange(YouTubePlayer youTubePlayer, PlayerConstants.PlayerState state)UnitonReady(YouTubePlayer youTubePlayer)UnitonPlaybackQualityChange(YouTubePlayer youTubePlayer, PlayerConstants.PlaybackQuality playbackQuality)UnitonPlaybackRateChange(YouTubePlayer youTubePlayer, PlayerConstants.PlaybackRate playbackRate)UnitonError(YouTubePlayer youTubePlayer, PlayerConstants.PlayerError error)UnitonApiChange(YouTubePlayer youTubePlayer)UnitonCurrentSecond(YouTubePlayer youTubePlayer, Float second)UnitonVideoDuration(YouTubePlayer youTubePlayer, Float duration)UnitonVideoLoadedFraction(YouTubePlayer youTubePlayer, Float loadedFraction)UnitonVideoId(YouTubePlayer youTubePlayer, String videoId)-
-
Constructor Detail
-
FadeViewHelper
FadeViewHelper(View targetView)
-
-
Method Detail
-
isDisabled
final Boolean isDisabled()
-
setDisabled
final Unit setDisabled(Boolean isDisabled)
-
getAnimationDuration
final Long getAnimationDuration()
Duration of the fade animation in milliseconds.
-
setAnimationDuration
final Unit setAnimationDuration(Long animationDuration)
Duration of the fade animation in milliseconds.
-
getFadeOutDelay
final Long getFadeOutDelay()
Delay after which the view automatically fades out.
-
setFadeOutDelay
final Unit setFadeOutDelay(Long fadeOutDelay)
Delay after which the view automatically fades out.
-
getTargetView
final View getTargetView()
-
toggleVisibility
final Unit toggleVisibility()
-
onStateChange
Unit onStateChange(YouTubePlayer youTubePlayer, PlayerConstants.PlayerState state)
-
onPlaybackQualityChange
Unit onPlaybackQualityChange(YouTubePlayer youTubePlayer, PlayerConstants.PlaybackQuality playbackQuality)
-
onPlaybackRateChange
Unit onPlaybackRateChange(YouTubePlayer youTubePlayer, PlayerConstants.PlaybackRate playbackRate)
-
onApiChange
Unit onApiChange(YouTubePlayer youTubePlayer)
-
onCurrentSecond
Unit onCurrentSecond(YouTubePlayer youTubePlayer, Float second)
-
onVideoDuration
Unit onVideoDuration(YouTubePlayer youTubePlayer, Float duration)
-
onVideoLoadedFraction
Unit onVideoLoadedFraction(YouTubePlayer youTubePlayer, Float loadedFraction)
-
-
-
-