public interface InitCallback
onSuccess()
method will be called. If
any errors occur during initialization that prevent the SDK from functioning, the onError(Throwable)
method will be called with a Throwable
that explains the error. In all cases where
initialization fails, the SDK will not be operable until Vungle.init(Collection, String, Context, InitCallback)
is called again.Modifier and Type | Method and Description |
---|---|
void |
onAutoCacheAdAvailable(java.lang.String placementId)
Vungle's SDK will automatically try to cache Ad for only one Placement that
is configured on our web dashboard as Auto-cached.
|
void |
onError(java.lang.Throwable throwable)
The failure callback for SDK initialization.
|
void |
onSuccess()
The success callback for SDK initialization.
|
void onSuccess()
Vungle.canPlayAd(String)
should still be used before playing
ad advertisement.void onError(java.lang.Throwable throwable)
VungleException
and can be initialized later. The SDK
will not automatically retry.throwable
- The error that prevented the SDK from initializing. Please see the documentation
for handling these errors.void onAutoCacheAdAvailable(java.lang.String placementId)
placementId
-