Click or drag to resize

Platform Class

Base platform class
Inheritance Hierarchy
SystemObject
  EtoPlatform

Namespace:  Eto
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public abstract class Platform

The Platform type exposes the following members.

Constructors
  NameDescription
Protected methodPlatform
Initializes a new instance of the Platform class
Top
Properties
  NameDescription
Public propertyStatic memberAllowReinitialize
Gets or sets a value indicating that the platform should allow reinitialization.
Public propertyCode exampleContext
Gets an object to wrap in the platform's context, when using multiple platforms.
Public propertyStatic memberDetect
Returns the current generator, or detects the generator to use if no current generator is set.
Public propertyID
Gets the ID of this platform
Public propertyStatic memberInstance
Gets the platform for the current thread
Public propertyIsAndroid
Gets a value indicating whether this platform is based on Xamarin.Android.
Public propertyIsDesktop
Gets a value indicating whether this is a desktop platform. This includes Mac, Gtk, WinForms, Wpf, Direct2D.
Public propertyIsGtk
Gets a value indicating whether this platform is based on GTK# (2 or 3)
Public propertyIsIos
Gets a value indicating whether this platform is based on Xamarin.iOS
Public propertyIsMac
Gets a value indicating whether this platform is a mac based platform (MonoMac/XamMac)
Public propertyIsMobile
Gets a value indicating whether this is a mobile platform. This includes iOS, Android, and WinRT.
Public propertyIsValid
Gets a value indicating that this platform is valid on the running device
Public propertyIsWinForms
Gets a value indicating whether this platform is based on Windows Forms
Public propertyIsWpf
Gets a value indicating whether this platform is based on WPF
Public propertySupportedFeatures
Gets the supported features of the platform.
Top
Methods
  NameDescription
Public methodAdd(Type, FuncObject)
Add the specified type and instantiator.
Public methodAddT(FuncT)
Add the instantiator for the specified handler type of T
Public methodCacheTKey, TValue
Gets a shared cache dictionary
Public methodCreate(Type)
Creates a new instance of the handler of the specified type
Public methodCreateT
Creates a new instance of the handler of the specified type of T
Public methodCreateShared(Type)
Creates a shared singleton instance of the specified type of type
Public methodCreateSharedT
Creates a shared singleton instance of the specified type of T
Public methodFind(Type)
Find the delegate to create instances of the specified type
Public methodFindT
Finds the delegate to create instances of the specified type
Public methodStatic memberGet
Gets the generator of the specified type
Public methodStatic memberInitialize(String)
Initialize the generator with the specified platformType as the current generator
Public methodStatic memberInitialize(Platform)
Initializes the specified platform as the current generator, for the current thread
Public methodInvoke(Action)
Invoke the specified action within the context of this platform
Public methodCode exampleInvokeT(FuncT)
Invoke the specified function within the context of this platform, returning its value.
Public methodLoadAssembly(Assembly)
Loads the extensions specified by the assembly attribute PlatformExtensionAttribute.
Public methodLoadAssembly(String)
Loads the extensions specified by the assembly attribute PlatformExtensionAttribute.
Protected methodOnHandlerCreated
Handles the WidgetCreated event
Protected methodOnWidgetCreated
Handles the WidgetCreated event
Public methodSupports(Type)
Gets a value indicating that the specified type is supported by this platform
Public methodSupportsT
Gets a value indicating that the specified type is supported by this platform
Public methodThreadStart
Used at the start of your custom threads
Top
Events
  NameDescription
Public eventHandlerCreated
Event to handle when widgets are created by this platform
Public eventWidgetCreated
Event to handle when widgets are created by this platform
Top
Remarks
See Also

Reference