RateBox  3.0
PaperPlaneTools.IAlertPlatformAdapter Interface Reference

An interface that connect PaperPlaneTools.Alert with particular alert implimentation. If you want to support (or change behaviour) on any platform (IOS, Android, Mac etc), you shold imlement PaperPlaneTools.IAlertPlatformAdapter and set PaperPlaneTools.AlertManager.Instance.AlertFactory or PaperPlaneTools.Alert.SetAdapter More...

Inheritance diagram for PaperPlaneTools.IAlertPlatformAdapter:
PaperPlaneTools.AlertAndroidAdapter PaperPlaneTools.AlertIOSAdapter PaperPlaneTools.AlertUnityAdapter PaperPlaneTools.AlertUnityUIAdapter

Public Member Functions

void SetOnDismiss (Action action)
 Set a callback to call when alert is dismissed. More...
 
void Show (Alert alert)
 Show the specified alert. More...
 
void Dismiss ()
 Dismiss this alert. More...
 
void HandleEvent (string name, string value)
 Handles an external event. For example, this function is used to handle events from iOS or Android native plugins. More...
 

Detailed Description

An interface that connect PaperPlaneTools.Alert with particular alert implimentation. If you want to support (or change behaviour) on any platform (IOS, Android, Mac etc), you shold imlement PaperPlaneTools.IAlertPlatformAdapter and set PaperPlaneTools.AlertManager.Instance.AlertFactory or PaperPlaneTools.Alert.SetAdapter

Member Function Documentation

§ Dismiss()

void PaperPlaneTools.IAlertPlatformAdapter.Dismiss ( )

Dismiss this alert.

§ HandleEvent()

void PaperPlaneTools.IAlertPlatformAdapter.HandleEvent ( string  name,
string  value 
)

Handles an external event. For example, this function is used to handle events from iOS or Android native plugins.

Parameters
nameEvent name.
valueEvent value.

§ SetOnDismiss()

void PaperPlaneTools.IAlertPlatformAdapter.SetOnDismiss ( Action  action)

Set a callback to call when alert is dismissed.

Parameters
actionCallback to call.

§ Show()

void PaperPlaneTools.IAlertPlatformAdapter.Show ( Alert  alert)

Show the specified alert.

Parameters
alertShow PaperPlaneTools.Alert

The documentation for this interface was generated from the following file: