Show / Hide Table of Contents

    Class MainConcurrent

    Inheritance
    System.Object
    Disposable
    MainConcurrent
    Implements
    IConcurrent
    System.IDisposable
    Inherited Members
    Disposable.Dispose()
    Disposable.DisposeCheck()
    Disposable.Finalize()
    Namespace: Sensus.Android.Concurrent
    Assembly: SensusAndroid.dll
    Syntax
    public class MainConcurrent : Disposable, IConcurrent, IDisposable
    Remarks

    Provides concurrent access to the main thread of the application. Note that Xamarin.Forms.Device.BeginInvokeOnMainThread(System.Action) invokes off the activity, and Sensus does not always have an activity, so we create a handler bound to the main thread's looper instead.

    Constructors

    MainConcurrent(Nullable<Int32>)

    Declaration
    public MainConcurrent(Nullable<int> waitTime = null)
    Parameters
    Type Name Description
    System.Nullable<System.Int32> waitTime

    Methods

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    Disposable.Dispose(Boolean)

    ExecuteThreadSafe(Action)

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

    ExecuteThreadSafe<T>(Func<T>)

    Declaration
    public T ExecuteThreadSafe<T>(Func<T> func)
    Parameters
    Type Name Description
    System.Func<T> func
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Implements

    IConcurrent
    System.IDisposable
    Back to top Copyright © 2014-2018 University of Virginia
    Generated by DocFX