Package com.brightcove.cast.util
Class BrightcoveChannelUtil
java.lang.Object
com.brightcove.cast.util.BrightcoveChannelUtil
An util class that helps sending messages to the Brightcove Cast app receiver
using the
BrightcoveMessage.BRIGHTCOVE_CAST_CHANNEL
channel.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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, String message) Send a message to the Brightcove Cast app receiver.
-
Constructor Details
-
BrightcoveChannelUtil
public BrightcoveChannelUtil()
-
-
Method Details
-
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 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
-