Search Results for

    Show / Hide Table of Contents

    Class NativeUtility

    Native utility class for Android platform operations.

    Inheritance
    System.Object
    NativeUtility
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FM.LiveSwitch.Android
    Assembly: FM.LiveSwitch.Android.dll
    Syntax
    public static class NativeUtility

    Methods

    DispatchToMainThread(Action)

    Dispatches an action to the main thread.

    Declaration
    public static void DispatchToMainThread(Action action)
    Parameters
    Type Name Description
    System.Action action

    The action to dispatch.

    DispatchToMainThread(Action, Boolean)

    Dispatches an action to the main thread.

    Declaration
    public static void DispatchToMainThread(Action action, bool forceSync)
    Parameters
    Type Name Description
    System.Action action

    The action to dispatch.

    System.Boolean forceSync

    Whether or not to force the action to run synchronously.

    DispatchToMainThreadMaui(Action)

    Dispatches an action to the main thread using MAUI's MainThread dispatcher. This is an alternative approach using MAUI's built-in mechanism.

    Declaration
    public static void DispatchToMainThreadMaui(Action action)
    Parameters
    Type Name Description
    System.Action action

    The action to dispatch.

    DispatchToMainThreadMauiSync(Action)

    Dispatches an action to the main thread synchronously using MAUI's MainThread dispatcher. This is an alternative approach using MAUI's built-in mechanism.

    Declaration
    public static void DispatchToMainThreadMauiSync(Action action)
    Parameters
    Type Name Description
    System.Action action

    The action to dispatch.

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.25.4