menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ThreadHelper - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ThreadHelper

    Helper class to identify the Main thread.

    Inheritance
    System.Object
    ThreadHelper
    Namespace: Syncfusion.XForms.Core
    Assembly: Syncfusion.Core.XForms.dll
    Syntax
    public static class ThreadHelper : Object

    Properties

    IsOnMainThread

    Gets if the current thread is the main UI thread.

    Declaration
    public static bool IsOnMainThread { get; }
    Property Value
    Type
    System.Boolean

    Methods

    Initialize(Int32)

    Declaration
    public static void Initialize(int mainThreadId)
    Parameters
    Type Name Description
    System.Int32 mainThreadId
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved