runOnMobile

inline fun <T> runOnMobile(action: () -> T?): T?

Executes action if the currentPlatform is ApplicationType.Android or ApplicationType.iOS. Returns action result or null.

See also