Created
June 22, 2015 17:57
-
-
Save mattleibow/daeb2c269a9674b8ebba to your computer and use it in GitHub Desktop.
ORK 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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