Runtime Runtime Class

Definition

Provides information about the Xamarin.iOS Runtime.

public static class Runtime
type Runtime = class
Inheritance
RuntimeRuntime

Fields

Arch Arch

The architecture where the code is currently running.

IsARM64CallingConvention IsARM64CallingConvention

Properties

DynamicRegistrationSupported DynamicRegistrationSupported

If dynamic registration is supported.

FrameworksPath FrameworksPath
OriginalWorkingDirectory OriginalWorkingDirectory
ResourcesPath ResourcesPath
UseAutoreleasePoolInThreadPool UseAutoreleasePoolInThreadPool

A value that specifies whether the Mono runtime should automatically create an NSAutoreleasePool for every work items on the threadpool.

Methods

ChangeToOriginalWorkingDirectory() ChangeToOriginalWorkingDirectory()
ConnectMethod(MethodInfo, Selector) ConnectMethod(MethodInfo, Selector)

This call allows the specified method in this method to respond to message invocations on the specified selector.

ConnectMethod(Type, MethodInfo, ExportAttribute) ConnectMethod(Type, MethodInfo, ExportAttribute)

This call allows the specified method in this method to respond to message invocations on the specified selector.

ConnectMethod(Type, MethodInfo, Selector) ConnectMethod(Type, MethodInfo, Selector)

This call allows the specified method in this method to respond to message invocations on the specified selector.

GetINativeObject(IntPtr, Boolean, Type) GetINativeObject(IntPtr, Boolean, Type)
GetINativeObject<T>(IntPtr, Boolean) GetINativeObject<T>(IntPtr, Boolean)

Wraps an native IntPtr with a managed object of the specified type.

GetNSObject(IntPtr) GetNSObject(IntPtr)

Wraps an unmanaged IntPtr into a fully typed NSObject, or returns an existing wrapper object if one already exists.

GetNSObject<T>(IntPtr, Boolean) GetNSObject<T>(IntPtr, Boolean)

Wraps an unmanaged IntPtr into a fully typed NSObject, or returns an existing wrapper object if one already exists.

GetNSObject<T>(IntPtr) GetNSObject<T>(IntPtr)

Wraps an unmanaged IntPtr into a fully typed NSObject, or returns an existing wrapper object if one already exists.

GetProtocol(String) GetProtocol(String)

Returns the handle of the Objective-C protocol descriptor for the given protocol name.

GetSurfacedObjects() GetSurfacedObjects()

Retrieves a list of all the Objective-C objects that have been surfaced to the managed world.

RegisterAssembly(Assembly) RegisterAssembly(Assembly)

Registers all of the classes in the specified assembly.

ReleaseBlockOnMainThread(IntPtr) ReleaseBlockOnMainThread(IntPtr)

Calls _Block_release on the specified block on the main thread.

StartWWAN(Uri) StartWWAN(Uri)

This method forces the WAN network access to be woken up.

StartWWAN(Uri, Action<Exception>) StartWWAN(Uri, Action<Exception>)

This method forces the WAN network access to be woken up asynchronously.

TryGetNSObject(IntPtr) TryGetNSObject(IntPtr)

Looks up an existing wrapper object for an unmanaged IntPtr.

Events

AssemblyRegistration AssemblyRegistration
MarshalManagedException MarshalManagedException

This event is raised when a managed exception needs to be marshalled to native code.

MarshalObjectiveCException MarshalObjectiveCException

This event is raised when an Objective-C exception needs to be marshalled to managed code.

Applies to

See also