/*!
  *  @brief Request a modal ad.
  *
  *  @note If the library isn't initialized, or if the ads aren't loaded yet, then the request will be added to a queue and treated as soon as possible.
  *  You cannot request two ad modals at the same time. In the case where you already have a modal request in the queue, the previous one will be canceled.
  */
 public static void RequestModalAd(AFAdSDKModalType modalType)
 {
     if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         afsdkad_requestModalAd(modalType);
     }
 }
Esempio n. 2
0
 /*!
  *  @brief Request a modal ad.
  *
  *  @note If the library isn't initialized, or if the ads aren't loaded yet, then the request will be added to a queue and treated as soon as possible.
  *  You cannot request two ad modals at the same time. In the case where you already have a modal request in the queue, the previous one will be canceled.
  */
 public static void RequestModalAd(AFAdSDKModalType modalType)
 {
     if (Application.platform == RuntimePlatform.Android)
     {
         AFAdSDK_requestModalAd(modalType);
     }
 }
Esempio n. 3
0
 /*!
  *  @brief Ask if ads are loaded and if there is at least one modal ad available
  *
  *  @note If ads aren't downloaded yet, then the method will return `AFAdSDKAdAvailabilityPending`.
  *  To test the library, and then have always have a positive response, please use the "debug" mode (see online documentation for more precisions).
  *
  *  @param modalType The kind of modal you want to check.
  *  Note that most of ads should be available for both formats.
  *
  *  @return `AFAdSDKAdAvailabilityPending` if ads aren't loaded yet, `AFAdSDKAdAvailabilityYes` and if there is at least one modal ad available, `AFAdSDKAdAvailabilityNo` otherwise.
  */
 public static AFAdSDKAdAvailability IsThereAModalAdAvailable(AFAdSDKModalType modalType)
 {
     if (Application.platform == RuntimePlatform.Android)
     {
         return(AFAdSDK_isAModalAdOfTypeAvailable(modalType) ? AFAdSDKAdAvailability.AFAdSDKAdAvailabilityYes : AFAdSDKAdAvailability.AFAdSDKAdAvailabilityNo);
     }
     return(AFAdSDKAdAvailability.AFAdSDKAdAvailabilityNo);
 }
 /*!
  *  @brief Ask if ads are loaded and if there is at least one modal ad available
  *
  *  @note If ads aren't downloaded yet, then the method will return `AFAdSDKAdAvailabilityPending`.
  *  To test the library, and then have always have a positive response, please use the "debug" mode (see online documentation for more precisions).
  *
  *  @param modalType The kind of modal you want to check.
  *  Note that most of ads should be available for both formats.
  *
  *  @return `AFAdSDKAdAvailabilityPending` if ads aren't loaded yet, `AFAdSDKAdAvailabilityYes` and if there is at least one modal ad available, `AFAdSDKAdAvailabilityNo` otherwise.
  */
 public static AFAdSDKAdAvailability IsThereAModalAdAvailable(AFAdSDKModalType modalType)
 {
     if (Application.platform == RuntimePlatform.IPhonePlayer)
     {
         return(afsdkad_isThereAModalAdAvailable(modalType));
     }
     return(AFAdSDKAdAvailability.AFAdSDKAdAvailabilityNo);
 }
Esempio n. 5
0
 private static extern bool AFAdSDK_isAModalAdOfTypeAvailable(AFAdSDKModalType modalType);
Esempio n. 6
0
 private static extern void AFAdSDK_requestModalAd(AFAdSDKModalType modalType);
 private static extern AFAdSDKAdAvailability afsdkad_isThereAModalAdAvailable(AFAdSDKModalType modalType);