Package com.brightcove.cast.util
Class BrightcoveChannelUtil
- java.lang.Object
-
- com.brightcove.cast.util.BrightcoveChannelUtil
-
public final class BrightcoveChannelUtil extends java.lang.ObjectAn util class that helps sending messages to the Brightcove Cast app receiver using theBrightcoveMessage.BRIGHTCOVE_CAST_CHANNELchannel.
-
-
Constructor Summary
Constructors Constructor Description BrightcoveChannelUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.android.gms.common.api.PendingResult<com.google.android.gms.common.api.Status>castSplashScreen(com.google.android.gms.cast.framework.CastSession castSession, SplashScreen splashScreen)Cast the Splash Screen to the Brightcove Cast app receiver.static com.google.android.gms.common.api.PendingResult<com.google.android.gms.common.api.Status>sendBrightcoveMessage(com.google.android.gms.cast.framework.CastSession castSession, BrightcoveMessage message)Send a BrightcoveMessage to the Brightcove Cast app receiver.static com.google.android.gms.common.api.PendingResult<com.google.android.gms.common.api.Status>sendMessage(com.google.android.gms.cast.framework.CastSession castSession, java.lang.String message)Send a message to the Brightcove Cast app receiver.
-
-
-
Method Detail
-
sendMessage
public static com.google.android.gms.common.api.PendingResult<com.google.android.gms.common.api.Status> sendMessage(@NonNull com.google.android.gms.cast.framework.CastSession castSession, @NonNull java.lang.String message)Send a message to the Brightcove Cast app receiver.- Parameters:
castSession- the cast sessionmessage- the message- Returns:
- the pending result
-
sendBrightcoveMessage
public static com.google.android.gms.common.api.PendingResult<com.google.android.gms.common.api.Status> sendBrightcoveMessage(@NonNull com.google.android.gms.cast.framework.CastSession castSession, @NonNull BrightcoveMessage message)Send a BrightcoveMessage to the Brightcove Cast app receiver.- Parameters:
castSession- the cast sessionmessage- the message- Returns:
- the pending result
-
castSplashScreen
public static com.google.android.gms.common.api.PendingResult<com.google.android.gms.common.api.Status> castSplashScreen(@NonNull com.google.android.gms.cast.framework.CastSession castSession, @NonNull SplashScreen splashScreen)Cast the Splash Screen to the Brightcove Cast app receiver.- Parameters:
castSession- the cast sessionsplashScreen- the splash screen- Returns:
- the pending result
-
-