Class Utility
An Android utility.
Inheritance
System.Object
Utility
Namespace: FM.LiveSwitch.Android
Assembly: FM.LiveSwitch.Android.dll
Syntax
public class Utility : object
Methods
DispatchToMainThread(Action0)
Dispatches an action to the main thread.
Declaration
public static void DispatchToMainThread(Action0 action)
Parameters
Type | Name | Description |
---|---|---|
Action0 | action | The action. |
DispatchToMainThread(Action0, Boolean)
Dispatches an action to the main thread.
Declaration
public static void DispatchToMainThread(Action0 action, bool forceSync)
Parameters
Type | Name | Description |
---|---|---|
Action0 | action | The action. |
System.Boolean | forceSync | Whether or not to force the action to run synchronously. |
IsSDKVersionSupported(Android.OS.BuildVersionCodes)
Determines whether [is SDK version supported] [the specified version].
Declaration
public static bool IsSDKVersionSupported(Android.OS.BuildVersionCodes version)
Parameters
Type | Name | Description |
---|---|---|
Android.OS.BuildVersionCodes | version | The version. |
Returns
Type | Description |
---|---|
System.Boolean |