public class ShowOperation extends AdOperation implements IShowOperation
| Constructor and Description |
|---|
ShowOperation(ShowOperationState showOperationState,
IWebViewBridgeInvocation webViewBridgeInvocation) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId() |
ShowOperationState |
getShowOperationState() |
void |
onUnityAdsShowClick(java.lang.String placementId)
Callback which notifies that UnityAds has received a click while showing ad for a specific placement.
|
void |
onUnityAdsShowComplete(java.lang.String placementId,
UnityAds.UnityAdsShowCompletionState state)
Callback triggered when the show operation completes successfully for a placement.
|
void |
onUnityAdsShowFailure(java.lang.String placementId,
UnityAds.UnityAdsShowError error,
java.lang.String message)
Callback which notifies that UnityAds has failed to show a specific placement with an error message and error category.
|
void |
onUnityAdsShowStart(java.lang.String placementId)
Callback which notifies that UnityAds has started to show ad with a specific placement.
|
invokeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvokepublic ShowOperation(ShowOperationState showOperationState, IWebViewBridgeInvocation webViewBridgeInvocation)
public ShowOperationState getShowOperationState()
getShowOperationState in interface IShowOperationpublic void onUnityAdsShowFailure(java.lang.String placementId,
UnityAds.UnityAdsShowError error,
java.lang.String message)
IUnityAdsShowListeneronUnityAdsShowFailure in interface IUnityAdsShowListenerplacementId - Placement, as defined in Unity Ads admin toolserror - If UnityAdsShowError.NOT_INITIALIZED, the show operation failed due to SDK is not initialized
If UnityAdsShowError.NOT_READY, the show operation failed due to placement not ready to show
If UnityAdsShowError.VIDEO_PLAYER_ERROR, the show operation failed due to an error in playing the video
If UnityAdsShowError.INVALID_ARGUMENT, the show operation failed due to invalid placement ID
If UnityAdsShowError.NO_CONNECTION, the show operation failed due to no internet connection
If UnityAdsShowError.ALREADY_SHOWING, the show operation failed due to ad is already being shown
If UnityAdsShowError.INTERNAL_ERROR, the show operation failed due to environment or internal servicesmessage - Human-readable error messagepublic void onUnityAdsShowStart(java.lang.String placementId)
IUnityAdsShowListeneronUnityAdsShowStart in interface IUnityAdsShowListenerplacementId - Placement, as defined in Unity Ads admin toolspublic void onUnityAdsShowClick(java.lang.String placementId)
IUnityAdsShowListeneronUnityAdsShowClick in interface IUnityAdsShowListenerplacementId - Placement, as defined in Unity Ads admin toolspublic void onUnityAdsShowComplete(java.lang.String placementId,
UnityAds.UnityAdsShowCompletionState state)
IUnityAdsShowListeneronUnityAdsShowComplete in interface IUnityAdsShowListenerplacementId - Placement, as defined in Unity Ads admin toolsstate - If UnityAdsShowCompletionState.SKIPPED, the show operation completed after the user skipped the video playback
If UnityAdsShowCompletionState.COMPLETED, the show operation completed after the user allowed the video to play to completion before dismissing the adpublic java.lang.String getId()
getId in interface IWebViewSharedObject