11 [DefaultExecutionOrder(ExecutionOrder)]
24 protected abstract void Awake();
71 public abstract bool Load();
80 public abstract void Show();
103 [ContextMenu(nameof(
Load))]
104 private void EditorLoad() =>
Load();
106 [ContextMenu(nameof(
Show))]
107 private void EditorShow() =>
Show();
109 [ContextMenu(nameof(
Unload))]
110 private void EditorUnload() =>
Unload();
virtual void UnityOnDestroy()
Unity OnDestroy.
const int ExecutionOrder
Executes ad unit components before most other components to avoid Awake and OnEnable races.
virtual void OnUnload()
Called when an ad is unloaded. Can be overridden to perform clean-up or other logic when the ad is no...
virtual void UnityOnApplicationQuit()
Unity OnApplicationQuit.
virtual void UnityOnEnable()
Unity OnEnable.
void Unload()
Unloads the ad.
virtual void UnityAwake()
Unity Awake.
AdType AdType
Gets the common advertising format exposed by this ad unit.
bool CanShowAd()
Verifies if the ad is ready to be shown.
Base MonoBehaviour class for ad units. This class defines the abstract and virtual properties and met...
void Awake()
Initializes the component during Unity's Awake callback.
void DestroyInternal()
Internal method for unloading an ad. Must be implemented to handle the specific unloading logic.
void ShowInternal()
Internal method for showing an ad. Must be implemented to handle the specific showing logic.
void OnApplicationQuit()
Handles application shutdown.
void OnEnable()
Handles the Unity enable callback.
void OnDestroy()
Releases resources during Unity's destroy callback.
Defines the basic operations required to manage an ad unit lifecycle.