Skip to content

Instantly share code, notes, and snippets.

@mattleibow
Created June 22, 2015 17:57
Show Gist options
  • Save mattleibow/daeb2c269a9674b8ebba to your computer and use it in GitHub Desktop.
Save mattleibow/daeb2c269a9674b8ebba to your computer and use it in GitHub Desktop.
ORK 2
[Export ("twoFingerTappingIntervalTaskWithIdentifier:intendedUseDescription:duration:options:")]
[CompilerGenerated]
public static ORKOrderedTask CreateTwoFingerTappingIntervalTask (string identifier, string intendedUseDescription, global::System.Double duration, ORKPredefinedTaskOption options)
{
if (identifier == null)
throw new ArgumentNullException ("identifier");
var nsidentifier = NSString.CreateNative (identifier);
var nsintendedUseDescription = NSString.CreateNative (intendedUseDescription);
ORKOrderedTask ret;
if (IntPtr.Size == 8) {
ret = Runtime.GetNSObject<ORKOrderedTask> (ApiDefinitions.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_Double_UInt64 (class_ptr, Selector.GetHandle ("twoFingerTappingIntervalTaskWithIdentifier:intendedUseDescription:duration:options:"), nsidentifier, nsintendedUseDescription, duration, (UInt64)options));
} else {
ret = Runtime.GetNSObject<ORKOrderedTask> (ApiDefinitions.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_Double_UInt32 (class_ptr, Selector.GetHandle ("twoFingerTappingIntervalTaskWithIdentifier:intendedUseDescription:duration:options:"), nsidentifier, nsintendedUseDescription, duration, (UInt32)options));
}
NSString.ReleaseNative (nsidentifier);
NSString.ReleaseNative (nsintendedUseDescription);
return ret;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment