VIRE API

VIRE

static Method Description
init(String appUuid); Add an new Gameobject with the Vire-Service to the Scene. This is necessary for the VIRE-Advertisements.
requestAd(AdOptions options); Request an advertisement from the server.
startAd(AdOptions options); Start the requested ad with updated adoptions, like vrEnabled switch.
startAd(); Start the requested ad with the adoptions from the ad request.

AdOptions

Attributes Description default
callback Add a callback function for the ad request. This function gets the ad result and the method signature should look like public void adcallback(AdResult res){...}. null
vrEnabled Set the VR mode enabled or disabled. true
autoAdStart If true starts the ad immediately after the ad request. If false the ad has to be started manually in the callback function in the AdResult.HasAd. true