Package 

Interface IUnityAdsShowListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onUnityAdsShowFailure(String placementId, UnityAds.UnityAdsShowError error, String message) Callback which notifies that UnityAds has failed to show a specific placement with an error message and error category.
      abstract void onUnityAdsShowStart(String placementId) Callback which notifies that UnityAds has started to show ad with a specific placement.
      abstract void onUnityAdsShowClick(String placementId) Callback which notifies that UnityAds has received a click while showing ad for a specific placement.
      abstract void onUnityAdsShowComplete(String placementId, UnityAds.UnityAdsShowCompletionState state) Callback triggered when the show operation completes successfully for a placement.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onUnityAdsShowFailure

         abstract void onUnityAdsShowFailure(String placementId, UnityAds.UnityAdsShowError error, String message)

        Callback which notifies that UnityAds has failed to show a specific placement with an error message and error category.

        Parameters:
        placementId - Placement, as defined in Unity Ads admin tools
        error - If UnityAdsShowError.NOT_INITIALIZED, the show operation failed due to SDK is not initializedIf UnityAdsShowError.NOT_READY, the show operation failed due to placement not ready to showIf UnityAdsShowError.VIDEO_PLAYER_ERROR, the show operation failed due to an error in playing the videoIf UnityAdsShowError.INVALID_ARGUMENT, the show operation failed due to invalid placement IDIf UnityAdsShowError.NO_CONNECTION, the show operation failed due to no internet connectionIf UnityAdsShowError.ALREADY_SHOWING, the show operation failed due to ad is already being shownIf UnityAdsShowError.
        message - Human-readable error message
      • onUnityAdsShowStart

         abstract void onUnityAdsShowStart(String placementId)

        Callback which notifies that UnityAds has started to show ad with a specific placement.

        Parameters:
        placementId - Placement, as defined in Unity Ads admin tools
      • onUnityAdsShowClick

         abstract void onUnityAdsShowClick(String placementId)

        Callback which notifies that UnityAds has received a click while showing ad for a specific placement.

        Parameters:
        placementId - Placement, as defined in Unity Ads admin tools
      • onUnityAdsShowComplete

         abstract void onUnityAdsShowComplete(String placementId, UnityAds.UnityAdsShowCompletionState state)

        Callback triggered when the show operation completes successfully for a placement.

        Parameters:
        placementId - Placement, as defined in Unity Ads admin tools
        state - If UnityAdsShowCompletionState.SKIPPED, the show operation completed after the user skipped the video playbackIf UnityAdsShowCompletionState.