isSupported

Property

Returns true if the platform supports ads.

Returns bool

Examples

public void WatchAd()
{
if (!SpatialBridge.adService.isSupported)
return;

SpatialBridge.adService.RequestAd(SpatialAdType.Rewarded).SetCompletedEvent((request) => {
if (request.succeeded)
{
Debug.Log("Ad succeeded");
}
});
}
public void WatchAd()
{
if (!SpatialBridge.adService.isSupported)
return;

SpatialBridge.adService.RequestAd(SpatialAdType.Rewarded).SetCompletedEvent((request) => {
if (request.succeeded)
{
Debug.Log("Ad succeeded");
}
});
}