Runtime Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides information about the Xamarin.iOS Runtime.
public static class Runtime
type Runtime = class
- Inheritance
-
Runtime
Fields
| Name | Description |
|---|---|
| Arch |
The architecture where the code is currently running. |
| IsARM64CallingConvention | |
Properties
| Name | Description |
|---|---|
| DynamicRegistrationSupported |
If dynamic registration is supported. |
| FrameworksPath | |
| OriginalWorkingDirectory | |
| ResourcesPath | |
Methods
| Name | Description |
|---|---|
| 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. |
| ConvertManagedEnumValueToNative(Int64) | |
| ConvertManagedEnumValueToNative(UInt64) | |
| ConvertNativeEnumValueToManaged(IntPtr, Boolean) | |
| ConvertNativeEnumValueToManaged(UIntPtr, Boolean) | |
| GetINativeObject(IntPtr, Boolean, Type) | |
| GetINativeObject<T>(IntPtr, Boolean, Boolean) | |
| 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(NativeHandle, Boolean) |
Wraps an unmanaged NativeHandle into a fully typed NSObject, or returns an existing wrapper object if one already exists. |
| GetNSObject(NativeHandle) | |
| 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. |
| GetNSObjectChecked<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. |
| RegisterAssembly(Assembly) |
Registers all of the classes in the specified assembly. |
| ReleaseBlockOnMainThread(IntPtr) |
Calls _Block_release on the specified block on the main thread. |
| RetainAndAutoreleaseNativeObject(INativeObject) |
Retain and autorelease the given object, then return the object's handle. |
| RetainAndAutoreleaseNSObject(NSObject) |
Retain and autorelease the given object, then return the object's handle. |
| 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. |
| ThrowException(IntPtr) | |
| TryGetNSObject(IntPtr) |
Looks up an existing wrapper object for an unmanaged IntPtr. |
Events
| Name | Description |
|---|---|
| AssemblyRegistration | |
| MarshalManagedException | |
| MarshalObjectiveCException | |