Editar

Compartilhar via


Runtime Class

Definition

Provides information about the Xamarin.iOS Runtime.

public static class Runtime
type Runtime = class
Inheritance
Runtime

Fields

Arch

The architecture where the code is currently running.

IsARM64CallingConvention

Properties

DynamicRegistrationSupported

If dynamic registration is supported.

FrameworksPath
OriginalWorkingDirectory
ResourcesPath
UseAutoreleasePoolInThreadPool

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

Methods

ChangeToOriginalWorkingDirectory()
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)

This call allows the specified method in this method to respond to message invocations on the specified 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<T>(IntPtr, Boolean)

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

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)

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

GetNSObject<T>(IntPtr)

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

GetProtocol(String)

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

GetSurfacedObjects()

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

RegisterAssembly(Assembly)

Registers all of the classes in the specified assembly.

ReleaseBlockOnMainThread(IntPtr)

Calls _Block_release on the specified block on the main thread.

StartWWAN(Uri, Action<Exception>)

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

StartWWAN(Uri)

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

TryGetNSObject(IntPtr)

Looks up an existing wrapper object for an unmanaged IntPtr.

Events

AssemblyRegistration
MarshalManagedException

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

MarshalObjectiveCException

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

Applies to

See also