|
|
|
@@ -27,10 +27,10 @@ declare class NSManagedObjectContext extends NSObject implements NSCoding, NSLoc
|
|
|
|
|
performBlockAndWait(block: () => void): void;
|
|
|
|
|
objectRegisteredForID(objectID: any): any;
|
|
|
|
|
objectWithID(objectID: any): any;
|
|
|
|
|
existingObjectWithIDError(objectID: any, error: any): any;
|
|
|
|
|
executeFetchRequestError(request: any, error: any): NSArray;
|
|
|
|
|
countForFetchRequestError(request: any, error: any): number;
|
|
|
|
|
executeRequestError(request: any, error: any): any;
|
|
|
|
|
existingObjectWithIDError(objectID: any): any;
|
|
|
|
|
executeFetchRequestError(request: any): NSArray;
|
|
|
|
|
countForFetchRequestError(request: any): number;
|
|
|
|
|
executeRequestError(request: any): any;
|
|
|
|
|
insertObject(object: any): void;
|
|
|
|
|
deleteObject(object: any): void;
|
|
|
|
|
refreshObjectMergeChanges(object: any, flag: boolean): void;
|
|
|
|
@@ -41,9 +41,9 @@ declare class NSManagedObjectContext extends NSObject implements NSCoding, NSLoc
|
|
|
|
|
redo(): void;
|
|
|
|
|
reset(): void;
|
|
|
|
|
rollback(): void;
|
|
|
|
|
save(error: any): boolean;
|
|
|
|
|
save(): boolean;
|
|
|
|
|
tryLock(): boolean;
|
|
|
|
|
obtainPermanentIDsForObjectsError(objects: NSArray, error: any): boolean;
|
|
|
|
|
obtainPermanentIDsForObjectsError(objects: NSArray): boolean;
|
|
|
|
|
mergeChangesFromContextDidSaveNotification(notification: NSNotification): void;
|
|
|
|
|
init(): NSManagedObjectContext;
|
|
|
|
|
static new(): NSManagedObjectContext;
|
|
|
|
@@ -151,13 +151,13 @@ declare class NSObject implements NSObjectProtocol {
|
|
|
|
|
static accessInstanceVariablesDirectly(): boolean;
|
|
|
|
|
valueForKey(key: string): any;
|
|
|
|
|
setValueForKey(value: any, key: string): void;
|
|
|
|
|
validateValueForKeyError(ioValue: any, inKey: string, outError: any): boolean;
|
|
|
|
|
validateValueForKeyError(ioValue: any, inKey: string): boolean;
|
|
|
|
|
mutableArrayValueForKey(key: string): NSMutableArray;
|
|
|
|
|
mutableOrderedSetValueForKey(key: string): NSMutableOrderedSet;
|
|
|
|
|
mutableSetValueForKey(key: string): NSMutableSet;
|
|
|
|
|
valueForKeyPath(keyPath: string): any;
|
|
|
|
|
setValueForKeyPath(value: any, keyPath: string): void;
|
|
|
|
|
validateValueForKeyPathError(ioValue: any, inKeyPath: string, outError: any): boolean;
|
|
|
|
|
validateValueForKeyPathError(ioValue: any, inKeyPath: string): boolean;
|
|
|
|
|
mutableArrayValueForKeyPath(keyPath: string): NSMutableArray;
|
|
|
|
|
mutableOrderedSetValueForKeyPath(keyPath: string): NSMutableOrderedSet;
|
|
|
|
|
mutableSetValueForKeyPath(keyPath: string): NSMutableSet;
|
|
|
|
@@ -595,8 +595,8 @@ declare class NSBundle extends NSObject {
|
|
|
|
|
static allFrameworks(): NSArray;
|
|
|
|
|
load(): boolean;
|
|
|
|
|
unload(): boolean;
|
|
|
|
|
preflightAndReturnError(error: any): boolean;
|
|
|
|
|
loadAndReturnError(error: any): boolean;
|
|
|
|
|
preflightAndReturnError(): boolean;
|
|
|
|
|
loadAndReturnError(): boolean;
|
|
|
|
|
URLForAuxiliaryExecutable(executableName: string): NSURL;
|
|
|
|
|
pathForAuxiliaryExecutable(executableName: string): string;
|
|
|
|
|
static URLForResourceWithExtensionSubdirectoryInBundleWithURL(name: string, ext: string, subpath: string, bundleURL: NSURL): NSURL;
|
|
|
|
@@ -910,16 +910,16 @@ declare class NSString extends NSObject implements NSCopying, NSMutableCopying,
|
|
|
|
|
static stringWithUTF8String(nullTerminatedCString: string): NSString;
|
|
|
|
|
initWithCStringEncoding(nullTerminatedCString: string, encoding: number): NSString;
|
|
|
|
|
static stringWithCStringEncoding(cString: string, enc: number): NSString;
|
|
|
|
|
initWithContentsOfURLEncodingError(url: NSURL, enc: number, error: any): NSString;
|
|
|
|
|
initWithContentsOfFileEncodingError(path: string, enc: number, error: any): NSString;
|
|
|
|
|
static stringWithContentsOfURLEncodingError(url: NSURL, enc: number, error: any): NSString;
|
|
|
|
|
static stringWithContentsOfFileEncodingError(path: string, enc: number, error: any): NSString;
|
|
|
|
|
initWithContentsOfURLUsedEncodingError(url: NSURL, enc: any, error: any): NSString;
|
|
|
|
|
initWithContentsOfFileUsedEncodingError(path: string, enc: any, error: any): NSString;
|
|
|
|
|
static stringWithContentsOfURLUsedEncodingError(url: NSURL, enc: any, error: any): NSString;
|
|
|
|
|
static stringWithContentsOfFileUsedEncodingError(path: string, enc: any, error: any): NSString;
|
|
|
|
|
writeToURLAtomicallyEncodingError(url: NSURL, useAuxiliaryFile: boolean, enc: number, error: any): boolean;
|
|
|
|
|
writeToFileAtomicallyEncodingError(path: string, useAuxiliaryFile: boolean, enc: number, error: any): boolean;
|
|
|
|
|
initWithContentsOfURLEncodingError(url: NSURL, enc: number): NSString;
|
|
|
|
|
initWithContentsOfFileEncodingError(path: string, enc: number): NSString;
|
|
|
|
|
static stringWithContentsOfURLEncodingError(url: NSURL, enc: number): NSString;
|
|
|
|
|
static stringWithContentsOfFileEncodingError(path: string, enc: number): NSString;
|
|
|
|
|
initWithContentsOfURLUsedEncodingError(url: NSURL, enc: any): NSString;
|
|
|
|
|
initWithContentsOfFileUsedEncodingError(path: string, enc: any): NSString;
|
|
|
|
|
static stringWithContentsOfURLUsedEncodingError(url: NSURL, enc: any): NSString;
|
|
|
|
|
static stringWithContentsOfFileUsedEncodingError(path: string, enc: any): NSString;
|
|
|
|
|
writeToURLAtomicallyEncodingError(url: NSURL, useAuxiliaryFile: boolean, enc: number): boolean;
|
|
|
|
|
writeToFileAtomicallyEncodingError(path: string, useAuxiliaryFile: boolean, enc: number): boolean;
|
|
|
|
|
static stringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data: NSData, opts: NSDictionary, string: any, usedLossyConversion: any): NSString;
|
|
|
|
|
propertyList(): any;
|
|
|
|
|
propertyListFromStringsFileFormat(): NSDictionary;
|
|
|
|
@@ -1031,14 +1031,14 @@ declare class NSMutableString extends NSString {
|
|
|
|
|
static stringWithUTF8String(nullTerminatedCString: string): NSMutableString;
|
|
|
|
|
initWithCStringEncoding(nullTerminatedCString: string, encoding: number): NSMutableString;
|
|
|
|
|
static stringWithCStringEncoding(cString: string, enc: number): NSMutableString;
|
|
|
|
|
initWithContentsOfURLEncodingError(url: NSURL, enc: number, error: any): NSMutableString;
|
|
|
|
|
initWithContentsOfFileEncodingError(path: string, enc: number, error: any): NSMutableString;
|
|
|
|
|
static stringWithContentsOfURLEncodingError(url: NSURL, enc: number, error: any): NSMutableString;
|
|
|
|
|
static stringWithContentsOfFileEncodingError(path: string, enc: number, error: any): NSMutableString;
|
|
|
|
|
initWithContentsOfURLUsedEncodingError(url: NSURL, enc: any, error: any): NSMutableString;
|
|
|
|
|
initWithContentsOfFileUsedEncodingError(path: string, enc: any, error: any): NSMutableString;
|
|
|
|
|
static stringWithContentsOfURLUsedEncodingError(url: NSURL, enc: any, error: any): NSMutableString;
|
|
|
|
|
static stringWithContentsOfFileUsedEncodingError(path: string, enc: any, error: any): NSMutableString;
|
|
|
|
|
initWithContentsOfURLEncodingError(url: NSURL, enc: number): NSMutableString;
|
|
|
|
|
initWithContentsOfFileEncodingError(path: string, enc: number): NSMutableString;
|
|
|
|
|
static stringWithContentsOfURLEncodingError(url: NSURL, enc: number): NSMutableString;
|
|
|
|
|
static stringWithContentsOfFileEncodingError(path: string, enc: number): NSMutableString;
|
|
|
|
|
initWithContentsOfURLUsedEncodingError(url: NSURL, enc: any): NSMutableString;
|
|
|
|
|
initWithContentsOfFileUsedEncodingError(path: string, enc: any): NSMutableString;
|
|
|
|
|
static stringWithContentsOfURLUsedEncodingError(url: NSURL, enc: any): NSMutableString;
|
|
|
|
|
static stringWithContentsOfFileUsedEncodingError(path: string, enc: any): NSMutableString;
|
|
|
|
|
static stringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data: NSData, opts: NSDictionary, string: any, usedLossyConversion: any): NSMutableString;
|
|
|
|
|
initWithContentsOfFile(path: string): NSMutableString;
|
|
|
|
|
initWithContentsOfURL(url: NSURL): NSMutableString;
|
|
|
|
@@ -1081,14 +1081,14 @@ declare class NSSimpleCString extends NSString {
|
|
|
|
|
static stringWithUTF8String(nullTerminatedCString: string): NSSimpleCString;
|
|
|
|
|
initWithCStringEncoding(nullTerminatedCString: string, encoding: number): NSSimpleCString;
|
|
|
|
|
static stringWithCStringEncoding(cString: string, enc: number): NSSimpleCString;
|
|
|
|
|
initWithContentsOfURLEncodingError(url: NSURL, enc: number, error: any): NSSimpleCString;
|
|
|
|
|
initWithContentsOfFileEncodingError(path: string, enc: number, error: any): NSSimpleCString;
|
|
|
|
|
static stringWithContentsOfURLEncodingError(url: NSURL, enc: number, error: any): NSSimpleCString;
|
|
|
|
|
static stringWithContentsOfFileEncodingError(path: string, enc: number, error: any): NSSimpleCString;
|
|
|
|
|
initWithContentsOfURLUsedEncodingError(url: NSURL, enc: any, error: any): NSSimpleCString;
|
|
|
|
|
initWithContentsOfFileUsedEncodingError(path: string, enc: any, error: any): NSSimpleCString;
|
|
|
|
|
static stringWithContentsOfURLUsedEncodingError(url: NSURL, enc: any, error: any): NSSimpleCString;
|
|
|
|
|
static stringWithContentsOfFileUsedEncodingError(path: string, enc: any, error: any): NSSimpleCString;
|
|
|
|
|
initWithContentsOfURLEncodingError(url: NSURL, enc: number): NSSimpleCString;
|
|
|
|
|
initWithContentsOfFileEncodingError(path: string, enc: number): NSSimpleCString;
|
|
|
|
|
static stringWithContentsOfURLEncodingError(url: NSURL, enc: number): NSSimpleCString;
|
|
|
|
|
static stringWithContentsOfFileEncodingError(path: string, enc: number): NSSimpleCString;
|
|
|
|
|
initWithContentsOfURLUsedEncodingError(url: NSURL, enc: any): NSSimpleCString;
|
|
|
|
|
initWithContentsOfFileUsedEncodingError(path: string, enc: any): NSSimpleCString;
|
|
|
|
|
static stringWithContentsOfURLUsedEncodingError(url: NSURL, enc: any): NSSimpleCString;
|
|
|
|
|
static stringWithContentsOfFileUsedEncodingError(path: string, enc: any): NSSimpleCString;
|
|
|
|
|
static stringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data: NSData, opts: NSDictionary, string: any, usedLossyConversion: any): NSSimpleCString;
|
|
|
|
|
initWithContentsOfFile(path: string): NSSimpleCString;
|
|
|
|
|
initWithContentsOfURL(url: NSURL): NSSimpleCString;
|
|
|
|
@@ -1131,14 +1131,14 @@ declare class NSConstantString extends NSSimpleCString {
|
|
|
|
|
static stringWithUTF8String(nullTerminatedCString: string): NSConstantString;
|
|
|
|
|
initWithCStringEncoding(nullTerminatedCString: string, encoding: number): NSConstantString;
|
|
|
|
|
static stringWithCStringEncoding(cString: string, enc: number): NSConstantString;
|
|
|
|
|
initWithContentsOfURLEncodingError(url: NSURL, enc: number, error: any): NSConstantString;
|
|
|
|
|
initWithContentsOfFileEncodingError(path: string, enc: number, error: any): NSConstantString;
|
|
|
|
|
static stringWithContentsOfURLEncodingError(url: NSURL, enc: number, error: any): NSConstantString;
|
|
|
|
|
static stringWithContentsOfFileEncodingError(path: string, enc: number, error: any): NSConstantString;
|
|
|
|
|
initWithContentsOfURLUsedEncodingError(url: NSURL, enc: any, error: any): NSConstantString;
|
|
|
|
|
initWithContentsOfFileUsedEncodingError(path: string, enc: any, error: any): NSConstantString;
|
|
|
|
|
static stringWithContentsOfURLUsedEncodingError(url: NSURL, enc: any, error: any): NSConstantString;
|
|
|
|
|
static stringWithContentsOfFileUsedEncodingError(path: string, enc: any, error: any): NSConstantString;
|
|
|
|
|
initWithContentsOfURLEncodingError(url: NSURL, enc: number): NSConstantString;
|
|
|
|
|
initWithContentsOfFileEncodingError(path: string, enc: number): NSConstantString;
|
|
|
|
|
static stringWithContentsOfURLEncodingError(url: NSURL, enc: number): NSConstantString;
|
|
|
|
|
static stringWithContentsOfFileEncodingError(path: string, enc: number): NSConstantString;
|
|
|
|
|
initWithContentsOfURLUsedEncodingError(url: NSURL, enc: any): NSConstantString;
|
|
|
|
|
initWithContentsOfFileUsedEncodingError(path: string, enc: any): NSConstantString;
|
|
|
|
|
static stringWithContentsOfURLUsedEncodingError(url: NSURL, enc: any): NSConstantString;
|
|
|
|
|
static stringWithContentsOfFileUsedEncodingError(path: string, enc: any): NSConstantString;
|
|
|
|
|
static stringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data: NSData, opts: NSDictionary, string: any, usedLossyConversion: any): NSConstantString;
|
|
|
|
|
initWithContentsOfFile(path: string): NSConstantString;
|
|
|
|
|
initWithContentsOfURL(url: NSURL): NSConstantString;
|
|
|
|
@@ -1328,24 +1328,24 @@ declare class NSData extends NSObject implements NSCopying, NSMutableCopying, NS
|
|
|
|
|
subdataWithRange(range: NSRange): NSData;
|
|
|
|
|
writeToFileAtomically(path: string, useAuxiliaryFile: boolean): boolean;
|
|
|
|
|
writeToURLAtomically(url: NSURL, atomically: boolean): boolean;
|
|
|
|
|
writeToFileOptionsError(path: string, writeOptionsMask: number, errorPtr: any): boolean;
|
|
|
|
|
writeToURLOptionsError(url: NSURL, writeOptionsMask: number, errorPtr: any): boolean;
|
|
|
|
|
writeToFileOptionsError(path: string, writeOptionsMask: number): boolean;
|
|
|
|
|
writeToURLOptionsError(url: NSURL, writeOptionsMask: number): boolean;
|
|
|
|
|
rangeOfDataOptionsRange(dataToFind: NSData, mask: number, searchRange: NSRange): NSRange;
|
|
|
|
|
enumerateByteRangesUsingBlock(block: (arg1: any, arg2: NSRange, arg3: any) => void): void;
|
|
|
|
|
static data(): NSData;
|
|
|
|
|
static dataWithBytesLength(bytes: any, length: number): NSData;
|
|
|
|
|
static dataWithBytesNoCopyLength(bytes: any, length: number): NSData;
|
|
|
|
|
static dataWithBytesNoCopyLengthFreeWhenDone(bytes: any, length: number, b: boolean): NSData;
|
|
|
|
|
static dataWithContentsOfFileOptionsError(path: string, readOptionsMask: number, errorPtr: any): NSData;
|
|
|
|
|
static dataWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: number, errorPtr: any): NSData;
|
|
|
|
|
static dataWithContentsOfFileOptionsError(path: string, readOptionsMask: number): NSData;
|
|
|
|
|
static dataWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: number): NSData;
|
|
|
|
|
static dataWithContentsOfFile(path: string): NSData;
|
|
|
|
|
static dataWithContentsOfURL(url: NSURL): NSData;
|
|
|
|
|
initWithBytesLength(bytes: any, length: number): NSData;
|
|
|
|
|
initWithBytesNoCopyLength(bytes: any, length: number): NSData;
|
|
|
|
|
initWithBytesNoCopyLengthFreeWhenDone(bytes: any, length: number, b: boolean): NSData;
|
|
|
|
|
initWithBytesNoCopyLengthDeallocator(bytes: any, length: number, deallocator: (arg1: any, arg2: number) => void): NSData;
|
|
|
|
|
initWithContentsOfFileOptionsError(path: string, readOptionsMask: number, errorPtr: any): NSData;
|
|
|
|
|
initWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: number, errorPtr: any): NSData;
|
|
|
|
|
initWithContentsOfFileOptionsError(path: string, readOptionsMask: number): NSData;
|
|
|
|
|
initWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: number): NSData;
|
|
|
|
|
initWithContentsOfFile(path: string): NSData;
|
|
|
|
|
initWithContentsOfURL(url: NSURL): NSData;
|
|
|
|
|
initWithData(data: NSData): NSData;
|
|
|
|
@@ -1413,16 +1413,16 @@ declare class NSMutableData extends NSData {
|
|
|
|
|
static dataWithBytesLength(bytes: any, length: number): NSMutableData;
|
|
|
|
|
static dataWithBytesNoCopyLength(bytes: any, length: number): NSMutableData;
|
|
|
|
|
static dataWithBytesNoCopyLengthFreeWhenDone(bytes: any, length: number, b: boolean): NSMutableData;
|
|
|
|
|
static dataWithContentsOfFileOptionsError(path: string, readOptionsMask: number, errorPtr: any): NSMutableData;
|
|
|
|
|
static dataWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: number, errorPtr: any): NSMutableData;
|
|
|
|
|
static dataWithContentsOfFileOptionsError(path: string, readOptionsMask: number): NSMutableData;
|
|
|
|
|
static dataWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: number): NSMutableData;
|
|
|
|
|
static dataWithContentsOfFile(path: string): NSMutableData;
|
|
|
|
|
static dataWithContentsOfURL(url: NSURL): NSMutableData;
|
|
|
|
|
initWithBytesLength(bytes: any, length: number): NSMutableData;
|
|
|
|
|
initWithBytesNoCopyLength(bytes: any, length: number): NSMutableData;
|
|
|
|
|
initWithBytesNoCopyLengthFreeWhenDone(bytes: any, length: number, b: boolean): NSMutableData;
|
|
|
|
|
initWithBytesNoCopyLengthDeallocator(bytes: any, length: number, deallocator: (arg1: any, arg2: number) => void): NSMutableData;
|
|
|
|
|
initWithContentsOfFileOptionsError(path: string, readOptionsMask: number, errorPtr: any): NSMutableData;
|
|
|
|
|
initWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: number, errorPtr: any): NSMutableData;
|
|
|
|
|
initWithContentsOfFileOptionsError(path: string, readOptionsMask: number): NSMutableData;
|
|
|
|
|
initWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: number): NSMutableData;
|
|
|
|
|
initWithContentsOfFile(path: string): NSMutableData;
|
|
|
|
|
initWithContentsOfURL(url: NSURL): NSMutableData;
|
|
|
|
|
initWithData(data: NSData): NSMutableData;
|
|
|
|
@@ -1455,16 +1455,16 @@ declare class NSPurgeableData extends NSMutableData implements NSDiscardableCont
|
|
|
|
|
static dataWithBytesLength(bytes: any, length: number): NSPurgeableData;
|
|
|
|
|
static dataWithBytesNoCopyLength(bytes: any, length: number): NSPurgeableData;
|
|
|
|
|
static dataWithBytesNoCopyLengthFreeWhenDone(bytes: any, length: number, b: boolean): NSPurgeableData;
|
|
|
|
|
static dataWithContentsOfFileOptionsError(path: string, readOptionsMask: number, errorPtr: any): NSPurgeableData;
|
|
|
|
|
static dataWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: number, errorPtr: any): NSPurgeableData;
|
|
|
|
|
static dataWithContentsOfFileOptionsError(path: string, readOptionsMask: number): NSPurgeableData;
|
|
|
|
|
static dataWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: number): NSPurgeableData;
|
|
|
|
|
static dataWithContentsOfFile(path: string): NSPurgeableData;
|
|
|
|
|
static dataWithContentsOfURL(url: NSURL): NSPurgeableData;
|
|
|
|
|
initWithBytesLength(bytes: any, length: number): NSPurgeableData;
|
|
|
|
|
initWithBytesNoCopyLength(bytes: any, length: number): NSPurgeableData;
|
|
|
|
|
initWithBytesNoCopyLengthFreeWhenDone(bytes: any, length: number, b: boolean): NSPurgeableData;
|
|
|
|
|
initWithBytesNoCopyLengthDeallocator(bytes: any, length: number, deallocator: (arg1: any, arg2: number) => void): NSPurgeableData;
|
|
|
|
|
initWithContentsOfFileOptionsError(path: string, readOptionsMask: number, errorPtr: any): NSPurgeableData;
|
|
|
|
|
initWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: number, errorPtr: any): NSPurgeableData;
|
|
|
|
|
initWithContentsOfFileOptionsError(path: string, readOptionsMask: number): NSPurgeableData;
|
|
|
|
|
initWithContentsOfURLOptionsError(url: NSURL, readOptionsMask: number): NSPurgeableData;
|
|
|
|
|
initWithContentsOfFile(path: string): NSPurgeableData;
|
|
|
|
|
initWithContentsOfURL(url: NSURL): NSPurgeableData;
|
|
|
|
|
initWithData(data: NSData): NSPurgeableData;
|
|
|
|
@@ -1488,9 +1488,9 @@ declare class NSFormatter extends NSObject implements NSCopying, NSCoding {
|
|
|
|
|
stringForObjectValue(obj: any): string;
|
|
|
|
|
attributedStringForObjectValueWithDefaultAttributes(obj: any, attrs: NSDictionary): NSAttributedString;
|
|
|
|
|
editingStringForObjectValue(obj: any): string;
|
|
|
|
|
getObjectValueForStringErrorDescription(obj: any, string: string, error: any): boolean;
|
|
|
|
|
isPartialStringValidNewEditingStringErrorDescription(partialString: string, newString: any, error: any): boolean;
|
|
|
|
|
isPartialStringValidProposedSelectedRangeOriginalStringOriginalSelectedRangeErrorDescription(partialStringPtr: any, proposedSelRangePtr: any, origString: string, origSelRange: NSRange, error: any): boolean;
|
|
|
|
|
getObjectValueForStringErrorDescription(obj: any, string: string): boolean;
|
|
|
|
|
isPartialStringValidNewEditingStringErrorDescription(partialString: string, newString: any): boolean;
|
|
|
|
|
isPartialStringValidProposedSelectedRangeOriginalStringOriginalSelectedRangeErrorDescription(partialStringPtr: any, proposedSelRangePtr: any, origString: string, origSelRange: NSRange): boolean;
|
|
|
|
|
init(): NSFormatter;
|
|
|
|
|
static new(): NSFormatter;
|
|
|
|
|
static allocWithZone(zone: any): NSFormatter;
|
|
|
|
@@ -1536,7 +1536,7 @@ declare class NSDateFormatter extends NSFormatter {
|
|
|
|
|
gregorianStartDate: NSDate;
|
|
|
|
|
doesRelativeDateFormatting: boolean;
|
|
|
|
|
constructor();
|
|
|
|
|
getObjectValueForStringRangeError(obj: any, string: string, rangep: any, error: any): boolean;
|
|
|
|
|
getObjectValueForStringRangeError(obj: any, string: string, rangep: any): boolean;
|
|
|
|
|
stringFromDate(date: NSDate): string;
|
|
|
|
|
dateFromString(string: string): NSDate;
|
|
|
|
|
static localizedStringFromDateDateStyleTimeStyle(date: NSDate, dstyle: number, tstyle: number): string;
|
|
|
|
@@ -1913,9 +1913,9 @@ declare class NSFileHandle extends NSObject implements NSSecureCoding {
|
|
|
|
|
static fileHandleForReadingAtPath(path: string): NSFileHandle;
|
|
|
|
|
static fileHandleForWritingAtPath(path: string): NSFileHandle;
|
|
|
|
|
static fileHandleForUpdatingAtPath(path: string): NSFileHandle;
|
|
|
|
|
static fileHandleForReadingFromURLError(url: NSURL, error: any): NSFileHandle;
|
|
|
|
|
static fileHandleForWritingToURLError(url: NSURL, error: any): NSFileHandle;
|
|
|
|
|
static fileHandleForUpdatingURLError(url: NSURL, error: any): NSFileHandle;
|
|
|
|
|
static fileHandleForReadingFromURLError(url: NSURL): NSFileHandle;
|
|
|
|
|
static fileHandleForWritingToURLError(url: NSURL): NSFileHandle;
|
|
|
|
|
static fileHandleForUpdatingURLError(url: NSURL): NSFileHandle;
|
|
|
|
|
readInBackgroundAndNotifyForModes(modes: NSArray): void;
|
|
|
|
|
readInBackgroundAndNotify(): void;
|
|
|
|
|
readToEndOfFileInBackgroundAndNotifyForModes(modes: NSArray): void;
|
|
|
|
@@ -1952,29 +1952,29 @@ declare class NSFileManager extends NSObject {
|
|
|
|
|
constructor();
|
|
|
|
|
static defaultManager(): NSFileManager;
|
|
|
|
|
mountedVolumeURLsIncludingResourceValuesForKeysOptions(propertyKeys: NSArray, options: number): NSArray;
|
|
|
|
|
contentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(url: NSURL, keys: NSArray, mask: number, error: any): NSArray;
|
|
|
|
|
contentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(url: NSURL, keys: NSArray, mask: number): NSArray;
|
|
|
|
|
URLsForDirectoryInDomains(directory: number, domainMask: number): NSArray;
|
|
|
|
|
URLForDirectoryInDomainAppropriateForURLCreateError(directory: number, domain: number, url: NSURL, shouldCreate: boolean, error: any): NSURL;
|
|
|
|
|
getRelationshipOfDirectoryAtURLToItemAtURLError(outRelationship: any, directoryURL: NSURL, otherURL: NSURL, error: any): boolean;
|
|
|
|
|
getRelationshipOfDirectoryInDomainToItemAtURLError(outRelationship: any, directory: number, domainMask: number, url: NSURL, error: any): boolean;
|
|
|
|
|
createDirectoryAtURLWithIntermediateDirectoriesAttributesError(url: NSURL, createIntermediates: boolean, attributes: NSDictionary, error: any): boolean;
|
|
|
|
|
createSymbolicLinkAtURLWithDestinationURLError(url: NSURL, destURL: NSURL, error: any): boolean;
|
|
|
|
|
setAttributesOfItemAtPathError(attributes: NSDictionary, path: string, error: any): boolean;
|
|
|
|
|
createDirectoryAtPathWithIntermediateDirectoriesAttributesError(path: string, createIntermediates: boolean, attributes: NSDictionary, error: any): boolean;
|
|
|
|
|
contentsOfDirectoryAtPathError(path: string, error: any): NSArray;
|
|
|
|
|
subpathsOfDirectoryAtPathError(path: string, error: any): NSArray;
|
|
|
|
|
attributesOfItemAtPathError(path: string, error: any): NSDictionary;
|
|
|
|
|
attributesOfFileSystemForPathError(path: string, error: any): NSDictionary;
|
|
|
|
|
createSymbolicLinkAtPathWithDestinationPathError(path: string, destPath: string, error: any): boolean;
|
|
|
|
|
destinationOfSymbolicLinkAtPathError(path: string, error: any): string;
|
|
|
|
|
copyItemAtPathToPathError(srcPath: string, dstPath: string, error: any): boolean;
|
|
|
|
|
moveItemAtPathToPathError(srcPath: string, dstPath: string, error: any): boolean;
|
|
|
|
|
linkItemAtPathToPathError(srcPath: string, dstPath: string, error: any): boolean;
|
|
|
|
|
removeItemAtPathError(path: string, error: any): boolean;
|
|
|
|
|
copyItemAtURLToURLError(srcURL: NSURL, dstURL: NSURL, error: any): boolean;
|
|
|
|
|
moveItemAtURLToURLError(srcURL: NSURL, dstURL: NSURL, error: any): boolean;
|
|
|
|
|
linkItemAtURLToURLError(srcURL: NSURL, dstURL: NSURL, error: any): boolean;
|
|
|
|
|
removeItemAtURLError(URL: NSURL, error: any): boolean;
|
|
|
|
|
URLForDirectoryInDomainAppropriateForURLCreateError(directory: number, domain: number, url: NSURL, shouldCreate: boolean): NSURL;
|
|
|
|
|
getRelationshipOfDirectoryAtURLToItemAtURLError(outRelationship: any, directoryURL: NSURL, otherURL: NSURL): boolean;
|
|
|
|
|
getRelationshipOfDirectoryInDomainToItemAtURLError(outRelationship: any, directory: number, domainMask: number, url: NSURL): boolean;
|
|
|
|
|
createDirectoryAtURLWithIntermediateDirectoriesAttributesError(url: NSURL, createIntermediates: boolean, attributes: NSDictionary): boolean;
|
|
|
|
|
createSymbolicLinkAtURLWithDestinationURLError(url: NSURL, destURL: NSURL): boolean;
|
|
|
|
|
setAttributesOfItemAtPathError(attributes: NSDictionary, path: string): boolean;
|
|
|
|
|
createDirectoryAtPathWithIntermediateDirectoriesAttributesError(path: string, createIntermediates: boolean, attributes: NSDictionary): boolean;
|
|
|
|
|
contentsOfDirectoryAtPathError(path: string): NSArray;
|
|
|
|
|
subpathsOfDirectoryAtPathError(path: string): NSArray;
|
|
|
|
|
attributesOfItemAtPathError(path: string): NSDictionary;
|
|
|
|
|
attributesOfFileSystemForPathError(path: string): NSDictionary;
|
|
|
|
|
createSymbolicLinkAtPathWithDestinationPathError(path: string, destPath: string): boolean;
|
|
|
|
|
destinationOfSymbolicLinkAtPathError(path: string): string;
|
|
|
|
|
copyItemAtPathToPathError(srcPath: string, dstPath: string): boolean;
|
|
|
|
|
moveItemAtPathToPathError(srcPath: string, dstPath: string): boolean;
|
|
|
|
|
linkItemAtPathToPathError(srcPath: string, dstPath: string): boolean;
|
|
|
|
|
removeItemAtPathError(path: string): boolean;
|
|
|
|
|
copyItemAtURLToURLError(srcURL: NSURL, dstURL: NSURL): boolean;
|
|
|
|
|
moveItemAtURLToURLError(srcURL: NSURL, dstURL: NSURL): boolean;
|
|
|
|
|
linkItemAtURLToURLError(srcURL: NSURL, dstURL: NSURL): boolean;
|
|
|
|
|
removeItemAtURLError(URL: NSURL): boolean;
|
|
|
|
|
fileAttributesAtPathTraverseLink(path: string, yorn: boolean): NSDictionary;
|
|
|
|
|
changeFileAttributesAtPath(attributes: NSDictionary, path: string): boolean;
|
|
|
|
|
directoryContentsAtPath(path: string): NSArray;
|
|
|
|
@@ -1999,13 +1999,13 @@ declare class NSFileManager extends NSObject {
|
|
|
|
|
createFileAtPathContentsAttributes(path: string, data: NSData, attr: NSDictionary): boolean;
|
|
|
|
|
fileSystemRepresentationWithPath(path: string): string;
|
|
|
|
|
stringWithFileSystemRepresentationLength(str: string, len: number): string;
|
|
|
|
|
replaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError(originalItemURL: NSURL, newItemURL: NSURL, backupItemName: string, options: number, resultingURL: any, error: any): boolean;
|
|
|
|
|
setUbiquitousItemAtURLDestinationURLError(flag: boolean, url: NSURL, destinationURL: NSURL, error: any): boolean;
|
|
|
|
|
replaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError(originalItemURL: NSURL, newItemURL: NSURL, backupItemName: string, options: number, resultingURL: any): boolean;
|
|
|
|
|
setUbiquitousItemAtURLDestinationURLError(flag: boolean, url: NSURL, destinationURL: NSURL): boolean;
|
|
|
|
|
isUbiquitousItemAtURL(url: NSURL): boolean;
|
|
|
|
|
startDownloadingUbiquitousItemAtURLError(url: NSURL, error: any): boolean;
|
|
|
|
|
evictUbiquitousItemAtURLError(url: NSURL, error: any): boolean;
|
|
|
|
|
startDownloadingUbiquitousItemAtURLError(url: NSURL): boolean;
|
|
|
|
|
evictUbiquitousItemAtURLError(url: NSURL): boolean;
|
|
|
|
|
URLForUbiquityContainerIdentifier(containerIdentifier: string): NSURL;
|
|
|
|
|
URLForPublishingUbiquitousItemAtURLExpirationDateError(url: NSURL, outDate: any, error: any): NSURL;
|
|
|
|
|
URLForPublishingUbiquitousItemAtURLExpirationDateError(url: NSURL, outDate: any): NSURL;
|
|
|
|
|
containerURLForSecurityApplicationGroupIdentifier(groupIdentifier: string): NSURL;
|
|
|
|
|
init(): NSFileManager;
|
|
|
|
|
static new(): NSFileManager;
|
|
|
|
@@ -2251,10 +2251,10 @@ declare class NSInvocation extends NSObject {
|
|
|
|
|
declare class NSJSONSerialization extends NSObject {
|
|
|
|
|
constructor();
|
|
|
|
|
static isValidJSONObject(obj: any): boolean;
|
|
|
|
|
static dataWithJSONObjectOptionsError(obj: any, opt: number, error: any): NSData;
|
|
|
|
|
static JSONObjectWithDataOptionsError(data: NSData, opt: number, error: any): any;
|
|
|
|
|
static writeJSONObjectToStreamOptionsError(obj: any, stream: NSOutputStream, opt: number, error: any): number;
|
|
|
|
|
static JSONObjectWithStreamOptionsError(stream: NSInputStream, opt: number, error: any): any;
|
|
|
|
|
static dataWithJSONObjectOptionsError(obj: any, opt: number): NSData;
|
|
|
|
|
static JSONObjectWithDataOptionsError(data: NSData, opt: number): any;
|
|
|
|
|
static writeJSONObjectToStreamOptionsError(obj: any, stream: NSOutputStream, opt: number): number;
|
|
|
|
|
static JSONObjectWithStreamOptionsError(stream: NSInputStream, opt: number): any;
|
|
|
|
|
init(): NSJSONSerialization;
|
|
|
|
|
static new(): NSJSONSerialization;
|
|
|
|
|
static allocWithZone(zone: any): NSJSONSerialization;
|
|
|
|
@@ -2528,10 +2528,10 @@ declare class NSCountedSet extends NSMutableSet {
|
|
|
|
|
declare class NSPropertyListSerialization extends NSObject {
|
|
|
|
|
constructor();
|
|
|
|
|
static propertyListIsValidForFormat(plist: any, format: number): boolean;
|
|
|
|
|
static dataWithPropertyListFormatOptionsError(plist: any, format: number, opt: number, error: any): NSData;
|
|
|
|
|
static writePropertyListToStreamFormatOptionsError(plist: any, stream: NSOutputStream, format: number, opt: number, error: any): number;
|
|
|
|
|
static propertyListWithDataOptionsFormatError(data: NSData, opt: number, format: any, error: any): any;
|
|
|
|
|
static propertyListWithStreamOptionsFormatError(stream: NSInputStream, opt: number, format: any, error: any): any;
|
|
|
|
|
static dataWithPropertyListFormatOptionsError(plist: any, format: number, opt: number): NSData;
|
|
|
|
|
static writePropertyListToStreamFormatOptionsError(plist: any, stream: NSOutputStream, format: number, opt: number): number;
|
|
|
|
|
static propertyListWithDataOptionsFormatError(data: NSData, opt: number, format: any): any;
|
|
|
|
|
static propertyListWithStreamOptionsFormatError(stream: NSInputStream, opt: number, format: any): any;
|
|
|
|
|
static dataFromPropertyListFormatErrorDescription(plist: any, format: number, errorString: any): NSData;
|
|
|
|
|
static propertyListFromDataMutabilityOptionFormatErrorDescription(data: NSData, opt: number, format: any, errorString: any): any;
|
|
|
|
|
init(): NSPropertyListSerialization;
|
|
|
|
@@ -2841,7 +2841,7 @@ declare class NSNumberFormatter extends NSFormatter {
|
|
|
|
|
maximumSignificantDigits: number;
|
|
|
|
|
partialStringValidationEnabled: boolean;
|
|
|
|
|
constructor();
|
|
|
|
|
getObjectValueForStringRangeError(obj: any, string: string, rangep: any, error: any): boolean;
|
|
|
|
|
getObjectValueForStringRangeError(obj: any, string: string, rangep: any): boolean;
|
|
|
|
|
stringFromNumber(number: NSNumber): string;
|
|
|
|
|
numberFromString(string: string): NSNumber;
|
|
|
|
|
static localizedStringFromNumberNumberStyle(num: NSNumber, nstyle: number): string;
|
|
|
|
@@ -3127,8 +3127,8 @@ declare class NSRegularExpression extends NSObject implements NSCopying, NSCodin
|
|
|
|
|
numberOfCaptureGroups: number;
|
|
|
|
|
constructor(pattern: string, options: number, error: any);
|
|
|
|
|
constructor();
|
|
|
|
|
static regularExpressionWithPatternOptionsError(pattern: string, options: number, error: any): NSRegularExpression;
|
|
|
|
|
initWithPatternOptionsError(pattern: string, options: number, error: any): NSRegularExpression;
|
|
|
|
|
static regularExpressionWithPatternOptionsError(pattern: string, options: number): NSRegularExpression;
|
|
|
|
|
initWithPatternOptionsError(pattern: string, options: number): NSRegularExpression;
|
|
|
|
|
static escapedPatternForString(string: string): string;
|
|
|
|
|
enumerateMatchesInStringOptionsRangeUsingBlock(string: string, options: number, range: NSRange, block: (arg1: NSTextCheckingResult, arg2: number, arg3: any) => void): void;
|
|
|
|
|
matchesInStringOptionsRange(string: string, options: number, range: NSRange): NSArray;
|
|
|
|
@@ -3153,9 +3153,9 @@ declare class NSDataDetector extends NSRegularExpression {
|
|
|
|
|
constructor(checkingTypes: number, error: any);
|
|
|
|
|
constructor(pattern: string, options: number, error: any);
|
|
|
|
|
constructor();
|
|
|
|
|
static dataDetectorWithTypesError(checkingTypes: number, error: any): NSDataDetector;
|
|
|
|
|
initWithTypesError(checkingTypes: number, error: any): NSDataDetector;
|
|
|
|
|
initWithPatternOptionsError(pattern: string, options: number, error: any): NSDataDetector;
|
|
|
|
|
static dataDetectorWithTypesError(checkingTypes: number): NSDataDetector;
|
|
|
|
|
initWithTypesError(checkingTypes: number): NSDataDetector;
|
|
|
|
|
initWithPatternOptionsError(pattern: string, options: number): NSDataDetector;
|
|
|
|
|
init(): NSDataDetector;
|
|
|
|
|
static new(): NSDataDetector;
|
|
|
|
|
static allocWithZone(zone: any): NSDataDetector;
|
|
|
|
@@ -3421,28 +3421,28 @@ declare class NSURL extends NSObject implements NSSecureCoding, NSCopying, QLPre
|
|
|
|
|
static URLWithString(URLString: string): NSURL;
|
|
|
|
|
static URLWithStringRelativeToURL(URLString: string, baseURL: NSURL): NSURL;
|
|
|
|
|
getFileSystemRepresentationMaxLength(buffer: string, maxBufferLength: number): boolean;
|
|
|
|
|
checkResourceIsReachableAndReturnError(error: any): boolean;
|
|
|
|
|
checkResourceIsReachableAndReturnError(): boolean;
|
|
|
|
|
isFileReferenceURL(): boolean;
|
|
|
|
|
fileReferenceURL(): NSURL;
|
|
|
|
|
getResourceValueForKeyError(value: any, key: string, error: any): boolean;
|
|
|
|
|
resourceValuesForKeysError(keys: NSArray, error: any): NSDictionary;
|
|
|
|
|
setResourceValueForKeyError(value: any, key: string, error: any): boolean;
|
|
|
|
|
setResourceValuesError(keyedValues: NSDictionary, error: any): boolean;
|
|
|
|
|
getResourceValueForKeyError(value: any, key: string): boolean;
|
|
|
|
|
resourceValuesForKeysError(keys: NSArray): NSDictionary;
|
|
|
|
|
setResourceValueForKeyError(value: any, key: string): boolean;
|
|
|
|
|
setResourceValuesError(keyedValues: NSDictionary): boolean;
|
|
|
|
|
removeCachedResourceValueForKey(key: string): void;
|
|
|
|
|
removeAllCachedResourceValues(): void;
|
|
|
|
|
setTemporaryResourceValueForKey(value: any, key: string): void;
|
|
|
|
|
bookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError(options: number, keys: NSArray, relativeURL: NSURL, error: any): NSData;
|
|
|
|
|
initByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData: NSData, options: number, relativeURL: NSURL, isStale: any, error: any): NSURL;
|
|
|
|
|
static URLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData: NSData, options: number, relativeURL: NSURL, isStale: any, error: any): NSURL;
|
|
|
|
|
bookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError(options: number, keys: NSArray, relativeURL: NSURL): NSData;
|
|
|
|
|
initByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData: NSData, options: number, relativeURL: NSURL, isStale: any): NSURL;
|
|
|
|
|
static URLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData: NSData, options: number, relativeURL: NSURL, isStale: any): NSURL;
|
|
|
|
|
static resourceValuesForKeysFromBookmarkData(keys: NSArray, bookmarkData: NSData): NSDictionary;
|
|
|
|
|
static writeBookmarkDataToURLOptionsError(bookmarkData: NSData, bookmarkFileURL: NSURL, options: number, error: any): boolean;
|
|
|
|
|
static bookmarkDataWithContentsOfURLError(bookmarkFileURL: NSURL, error: any): NSData;
|
|
|
|
|
static URLByResolvingAliasFileAtURLOptionsError(url: NSURL, options: number, error: any): NSURL;
|
|
|
|
|
static writeBookmarkDataToURLOptionsError(bookmarkData: NSData, bookmarkFileURL: NSURL, options: number): boolean;
|
|
|
|
|
static bookmarkDataWithContentsOfURLError(bookmarkFileURL: NSURL): NSData;
|
|
|
|
|
static URLByResolvingAliasFileAtURLOptionsError(url: NSURL, options: number): NSURL;
|
|
|
|
|
startAccessingSecurityScopedResource(): boolean;
|
|
|
|
|
stopAccessingSecurityScopedResource(): void;
|
|
|
|
|
getPromisedItemResourceValueForKeyError(value: any, key: string, error: any): boolean;
|
|
|
|
|
promisedItemResourceValuesForKeysError(keys: NSArray, error: any): NSDictionary;
|
|
|
|
|
checkPromisedItemIsReachableAndReturnError(error: any): boolean;
|
|
|
|
|
getPromisedItemResourceValueForKeyError(value: any, key: string): boolean;
|
|
|
|
|
promisedItemResourceValuesForKeysError(keys: NSArray): NSDictionary;
|
|
|
|
|
checkPromisedItemIsReachableAndReturnError(): boolean;
|
|
|
|
|
static fileURLWithPathComponents(components: NSArray): NSURL;
|
|
|
|
|
URLByAppendingPathComponent(pathComponent: string): NSURL;
|
|
|
|
|
URLByAppendingPathComponentIsDirectory(pathComponent: string, isDirectory: boolean): NSURL;
|
|
|
|
@@ -3615,7 +3615,7 @@ declare class NSURLConnection extends NSObject {
|
|
|
|
|
unscheduleFromRunLoopForMode(aRunLoop: NSRunLoop, mode: string): void;
|
|
|
|
|
setDelegateQueue(queue: NSOperationQueue): void;
|
|
|
|
|
static canHandleRequest(request: NSURLRequest): boolean;
|
|
|
|
|
static sendSynchronousRequestReturningResponseError(request: NSURLRequest, response: any, error: any): NSData;
|
|
|
|
|
static sendSynchronousRequestReturningResponseError(request: NSURLRequest, response: any): NSData;
|
|
|
|
|
static sendAsynchronousRequestQueueCompletionHandler(request: NSURLRequest, queue: NSOperationQueue, handler: (arg1: NSURLResponse, arg2: NSData, arg3: NSError) => void): void;
|
|
|
|
|
init(): NSURLConnection;
|
|
|
|
|
static new(): NSURLConnection;
|
|
|
|
@@ -3923,10 +3923,10 @@ declare class NSAttributedString extends NSObject implements NSCopying, NSMutabl
|
|
|
|
|
initWithAttributedString(attrStr: NSAttributedString): NSAttributedString;
|
|
|
|
|
enumerateAttributesInRangeOptionsUsingBlock(enumerationRange: NSRange, opts: number, block: (arg1: NSDictionary, arg2: NSRange, arg3: any) => void): void;
|
|
|
|
|
enumerateAttributeInRangeOptionsUsingBlock(attrName: string, enumerationRange: NSRange, opts: number, block: (arg1: any, arg2: NSRange, arg3: any) => void): void;
|
|
|
|
|
initWithFileURLOptionsDocumentAttributesError(url: NSURL, options: NSDictionary, dict: any, error: any): NSAttributedString;
|
|
|
|
|
initWithDataOptionsDocumentAttributesError(data: NSData, options: NSDictionary, dict: any, error: any): NSAttributedString;
|
|
|
|
|
dataFromRangeDocumentAttributesError(range: NSRange, dict: NSDictionary, error: any): NSData;
|
|
|
|
|
fileWrapperFromRangeDocumentAttributesError(range: NSRange, dict: NSDictionary, error: any): NSFileWrapper;
|
|
|
|
|
initWithFileURLOptionsDocumentAttributesError(url: NSURL, options: NSDictionary, dict: any): NSAttributedString;
|
|
|
|
|
initWithDataOptionsDocumentAttributesError(data: NSData, options: NSDictionary, dict: any): NSAttributedString;
|
|
|
|
|
dataFromRangeDocumentAttributesError(range: NSRange, dict: NSDictionary): NSData;
|
|
|
|
|
fileWrapperFromRangeDocumentAttributesError(range: NSRange, dict: NSDictionary): NSFileWrapper;
|
|
|
|
|
size(): CGSize;
|
|
|
|
|
drawAtPoint(point: CGPoint): void;
|
|
|
|
|
drawInRect(rect: CGRect): void;
|
|
|
|
@@ -3965,13 +3965,13 @@ declare class NSMutableAttributedString extends NSAttributedString {
|
|
|
|
|
beginEditing(): void;
|
|
|
|
|
endEditing(): void;
|
|
|
|
|
fixAttributesInRange(range: NSRange): void;
|
|
|
|
|
readFromFileURLOptionsDocumentAttributesError(url: NSURL, opts: NSDictionary, dict: any, error: any): boolean;
|
|
|
|
|
readFromDataOptionsDocumentAttributesError(data: NSData, opts: NSDictionary, dict: any, error: any): boolean;
|
|
|
|
|
readFromFileURLOptionsDocumentAttributesError(url: NSURL, opts: NSDictionary, dict: any): boolean;
|
|
|
|
|
readFromDataOptionsDocumentAttributesError(data: NSData, opts: NSDictionary, dict: any): boolean;
|
|
|
|
|
initWithString(str: string): NSMutableAttributedString;
|
|
|
|
|
initWithStringAttributes(str: string, attrs: NSDictionary): NSMutableAttributedString;
|
|
|
|
|
initWithAttributedString(attrStr: NSAttributedString): NSMutableAttributedString;
|
|
|
|
|
initWithFileURLOptionsDocumentAttributesError(url: NSURL, options: NSDictionary, dict: any, error: any): NSMutableAttributedString;
|
|
|
|
|
initWithDataOptionsDocumentAttributesError(data: NSData, options: NSDictionary, dict: any, error: any): NSMutableAttributedString;
|
|
|
|
|
initWithFileURLOptionsDocumentAttributesError(url: NSURL, options: NSDictionary, dict: any): NSMutableAttributedString;
|
|
|
|
|
initWithDataOptionsDocumentAttributesError(data: NSData, options: NSDictionary, dict: any): NSMutableAttributedString;
|
|
|
|
|
init(): NSMutableAttributedString;
|
|
|
|
|
static new(): NSMutableAttributedString;
|
|
|
|
|
static allocWithZone(zone: any): NSMutableAttributedString;
|
|
|
|
@@ -4233,9 +4233,9 @@ declare class NSFileVersion extends NSObject {
|
|
|
|
|
static unresolvedConflictVersionsOfItemAtURL(url: NSURL): NSArray;
|
|
|
|
|
static getNonlocalVersionsOfItemAtURLCompletionHandler(url: NSURL, completionHandler: (arg1: NSArray, arg2: NSError) => void): void;
|
|
|
|
|
static versionOfItemAtURLForPersistentIdentifier(url: NSURL, persistentIdentifier: any): NSFileVersion;
|
|
|
|
|
replaceItemAtURLOptionsError(url: NSURL, options: number, error: any): NSURL;
|
|
|
|
|
removeAndReturnError(outError: any): boolean;
|
|
|
|
|
static removeOtherVersionsOfItemAtURLError(url: NSURL, outError: any): boolean;
|
|
|
|
|
replaceItemAtURLOptionsError(url: NSURL, options: number): NSURL;
|
|
|
|
|
removeAndReturnError(): boolean;
|
|
|
|
|
static removeOtherVersionsOfItemAtURLError(url: NSURL): boolean;
|
|
|
|
|
init(): NSFileVersion;
|
|
|
|
|
static new(): NSFileVersion;
|
|
|
|
|
static allocWithZone(zone: any): NSFileVersion;
|
|
|
|
@@ -4257,14 +4257,14 @@ declare class NSFileWrapper extends NSObject implements NSCoding {
|
|
|
|
|
constructor(childrenByPreferredName: NSDictionary);
|
|
|
|
|
constructor(url: NSURL);
|
|
|
|
|
constructor();
|
|
|
|
|
initWithURLOptionsError(url: NSURL, options: number, outError: any): NSFileWrapper;
|
|
|
|
|
initWithURLOptionsError(url: NSURL, options: number): NSFileWrapper;
|
|
|
|
|
initDirectoryWithFileWrappers(childrenByPreferredName: NSDictionary): NSFileWrapper;
|
|
|
|
|
initRegularFileWithContents(contents: NSData): NSFileWrapper;
|
|
|
|
|
initSymbolicLinkWithDestinationURL(url: NSURL): NSFileWrapper;
|
|
|
|
|
initWithSerializedRepresentation(serializeRepresentation: NSData): NSFileWrapper;
|
|
|
|
|
matchesContentsOfURL(url: NSURL): boolean;
|
|
|
|
|
readFromURLOptionsError(url: NSURL, options: number, outError: any): boolean;
|
|
|
|
|
writeToURLOptionsOriginalContentsURLError(url: NSURL, options: number, originalContentsURL: NSURL, outError: any): boolean;
|
|
|
|
|
readFromURLOptionsError(url: NSURL, options: number): boolean;
|
|
|
|
|
writeToURLOptionsOriginalContentsURLError(url: NSURL, options: number, originalContentsURL: NSURL): boolean;
|
|
|
|
|
addFileWrapper(child: NSFileWrapper): string;
|
|
|
|
|
addRegularFileWithContentsPreferredFilename(data: NSData, fileName: string): string;
|
|
|
|
|
removeFileWrapper(child: NSFileWrapper): void;
|
|
|
|
@@ -6894,8 +6894,8 @@ declare class UIDocument extends NSObject implements NSFilePresenter {
|
|
|
|
|
initWithFileURL(url: NSURL): UIDocument;
|
|
|
|
|
openWithCompletionHandler(completionHandler: (arg1: boolean) => void): void;
|
|
|
|
|
closeWithCompletionHandler(completionHandler: (arg1: boolean) => void): void;
|
|
|
|
|
loadFromContentsOfTypeError(contents: any, typeName: string, outError: any): boolean;
|
|
|
|
|
contentsForTypeError(typeName: string, outError: any): any;
|
|
|
|
|
loadFromContentsOfTypeError(contents: any, typeName: string): boolean;
|
|
|
|
|
contentsForTypeError(typeName: string): any;
|
|
|
|
|
disableEditing(): void;
|
|
|
|
|
enableEditing(): void;
|
|
|
|
|
hasUnsavedChanges(): boolean;
|
|
|
|
@@ -6906,10 +6906,10 @@ declare class UIDocument extends NSObject implements NSFilePresenter {
|
|
|
|
|
autosaveWithCompletionHandler(completionHandler: (arg1: boolean) => void): void;
|
|
|
|
|
savingFileType(): string;
|
|
|
|
|
fileNameExtensionForTypeSaveOperation(typeName: string, saveOperation: number): string;
|
|
|
|
|
writeContentsAndAttributesSafelyToURLForSaveOperationError(contents: any, additionalFileAttributes: NSDictionary, url: NSURL, saveOperation: number, outError: any): boolean;
|
|
|
|
|
writeContentsToURLForSaveOperationOriginalContentsURLError(contents: any, url: NSURL, saveOperation: number, originalContentsURL: NSURL, outError: any): boolean;
|
|
|
|
|
fileAttributesToWriteToURLForSaveOperationError(url: NSURL, saveOperation: number, outError: any): NSDictionary;
|
|
|
|
|
readFromURLError(url: NSURL, outError: any): boolean;
|
|
|
|
|
writeContentsAndAttributesSafelyToURLForSaveOperationError(contents: any, additionalFileAttributes: NSDictionary, url: NSURL, saveOperation: number): boolean;
|
|
|
|
|
writeContentsToURLForSaveOperationOriginalContentsURLError(contents: any, url: NSURL, saveOperation: number, originalContentsURL: NSURL): boolean;
|
|
|
|
|
fileAttributesToWriteToURLForSaveOperationError(url: NSURL, saveOperation: number): NSDictionary;
|
|
|
|
|
readFromURLError(url: NSURL): boolean;
|
|
|
|
|
performAsynchronousFileAccessUsingBlock(block: () => void): void;
|
|
|
|
|
handleErrorUserInteractionPermitted(error: NSError, userInteractionPermitted: boolean): void;
|
|
|
|
|
finishedHandlingErrorRecovered(error: NSError, recovered: boolean): void;
|
|
|
|
@@ -7033,7 +7033,7 @@ declare class UIDocumentPickerExtensionViewController extends UIViewController {
|
|
|
|
|
}
|
|
|
|
|
declare class NSFileProviderExtension extends NSObject {
|
|
|
|
|
constructor();
|
|
|
|
|
static writePlaceholderAtURLWithMetadataError(placeholderURL: NSURL, metadata: NSDictionary, error: any): boolean;
|
|
|
|
|
static writePlaceholderAtURLWithMetadataError(placeholderURL: NSURL, metadata: NSDictionary): boolean;
|
|
|
|
|
static placeholderURLForURL(url: NSURL): NSURL;
|
|
|
|
|
providerIdentifier(): string;
|
|
|
|
|
documentStorageURL(): NSURL;
|
|
|
|
@@ -7405,11 +7405,11 @@ declare class UIManagedDocument extends UIDocument {
|
|
|
|
|
constructor(url: NSURL);
|
|
|
|
|
constructor();
|
|
|
|
|
static persistentStoreName(): string;
|
|
|
|
|
configurePersistentStoreCoordinatorForURLOfTypeModelConfigurationStoreOptionsError(storeURL: NSURL, fileType: string, configuration: string, storeOptions: NSDictionary, error: any): boolean;
|
|
|
|
|
configurePersistentStoreCoordinatorForURLOfTypeModelConfigurationStoreOptionsError(storeURL: NSURL, fileType: string, configuration: string, storeOptions: NSDictionary): boolean;
|
|
|
|
|
persistentStoreTypeForFileType(fileType: string): string;
|
|
|
|
|
readAdditionalContentFromURLError(absoluteURL: NSURL, error: any): boolean;
|
|
|
|
|
additionalContentForURLError(absoluteURL: NSURL, error: any): any;
|
|
|
|
|
writeAdditionalContentToURLOriginalContentsURLError(content: any, absoluteURL: NSURL, absoluteOriginalContentsURL: NSURL, error: any): boolean;
|
|
|
|
|
readAdditionalContentFromURLError(absoluteURL: NSURL): boolean;
|
|
|
|
|
additionalContentForURLError(absoluteURL: NSURL): any;
|
|
|
|
|
writeAdditionalContentToURLOriginalContentsURLError(content: any, absoluteURL: NSURL, absoluteOriginalContentsURL: NSURL): boolean;
|
|
|
|
|
initWithFileURL(url: NSURL): UIManagedDocument;
|
|
|
|
|
init(): UIManagedDocument;
|
|
|
|
|
static new(): UIManagedDocument;
|
|
|
|
@@ -8857,8 +8857,8 @@ declare class NSTextStorage extends NSMutableAttributedString {
|
|
|
|
|
initWithString(str: string): NSTextStorage;
|
|
|
|
|
initWithStringAttributes(str: string, attrs: NSDictionary): NSTextStorage;
|
|
|
|
|
initWithAttributedString(attrStr: NSAttributedString): NSTextStorage;
|
|
|
|
|
initWithFileURLOptionsDocumentAttributesError(url: NSURL, options: NSDictionary, dict: any, error: any): NSTextStorage;
|
|
|
|
|
initWithDataOptionsDocumentAttributesError(data: NSData, options: NSDictionary, dict: any, error: any): NSTextStorage;
|
|
|
|
|
initWithFileURLOptionsDocumentAttributesError(url: NSURL, options: NSDictionary, dict: any): NSTextStorage;
|
|
|
|
|
initWithDataOptionsDocumentAttributesError(data: NSData, options: NSDictionary, dict: any): NSTextStorage;
|
|
|
|
|
init(): NSTextStorage;
|
|
|
|
|
static new(): NSTextStorage;
|
|
|
|
|
static allocWithZone(zone: any): NSTextStorage;
|
|
|
|
@@ -9319,7 +9319,7 @@ declare class CIFilter extends NSObject implements NSCoding, NSCopying {
|
|
|
|
|
static filterNamesInCategory(category: string): NSArray;
|
|
|
|
|
static filterNamesInCategories(categories: NSArray): NSArray;
|
|
|
|
|
static serializedXMPFromFiltersInputImageExtent(filters: NSArray, extent: CGRect): NSData;
|
|
|
|
|
static filterArrayFromSerializedXMPInputImageExtentError(xmpData: NSData, extent: CGRect, outError: any): NSArray;
|
|
|
|
|
static filterArrayFromSerializedXMPInputImageExtentError(xmpData: NSData, extent: CGRect): NSArray;
|
|
|
|
|
init(): CIFilter;
|
|
|
|
|
static new(): CIFilter;
|
|
|
|
|
static allocWithZone(zone: any): CIFilter;
|
|
|
|
@@ -10487,7 +10487,7 @@ declare class ALAssetRepresentation extends NSObject {
|
|
|
|
|
UTI(): string;
|
|
|
|
|
dimensions(): CGSize;
|
|
|
|
|
size(): number;
|
|
|
|
|
getBytesFromOffsetLengthError(buffer: string, offset: number, length: number, error: any): number;
|
|
|
|
|
getBytesFromOffsetLengthError(buffer: string, offset: number, length: number): number;
|
|
|
|
|
fullResolutionImage(): any;
|
|
|
|
|
CGImageWithOptions(options: NSDictionary): any;
|
|
|
|
|
fullScreenImage(): any;
|
|
|
|
@@ -10564,7 +10564,7 @@ declare class AVAudioEngine extends NSObject {
|
|
|
|
|
disconnectNodeOutputBus(node: AVAudioNode, bus: number): void;
|
|
|
|
|
disconnectNodeOutput(node: AVAudioNode): void;
|
|
|
|
|
prepare(): void;
|
|
|
|
|
startAndReturnError(outError: any): boolean;
|
|
|
|
|
startAndReturnError(): boolean;
|
|
|
|
|
pause(): void;
|
|
|
|
|
reset(): void;
|
|
|
|
|
stop(): void;
|
|
|
|
@@ -10600,7 +10600,7 @@ declare class AVAudioUnit extends AVAudioNode {
|
|
|
|
|
manufacturerName: string;
|
|
|
|
|
version: number;
|
|
|
|
|
constructor();
|
|
|
|
|
loadAudioUnitPresetAtURLError(url: NSURL, error: any): boolean;
|
|
|
|
|
loadAudioUnitPresetAtURLError(url: NSURL): boolean;
|
|
|
|
|
init(): AVAudioUnit;
|
|
|
|
|
static new(): AVAudioUnit;
|
|
|
|
|
static allocWithZone(zone: any): AVAudioUnit;
|
|
|
|
@@ -10766,13 +10766,13 @@ declare class AVAudioFile extends NSObject {
|
|
|
|
|
constructor(fileURL: NSURL, settings: NSDictionary, outError: any);
|
|
|
|
|
constructor(fileURL: NSURL, settings: NSDictionary, format: number, interleaved: boolean, outError: any);
|
|
|
|
|
constructor();
|
|
|
|
|
initForReadingError(fileURL: NSURL, outError: any): AVAudioFile;
|
|
|
|
|
initForReadingCommonFormatInterleavedError(fileURL: NSURL, format: number, interleaved: boolean, outError: any): AVAudioFile;
|
|
|
|
|
initForWritingSettingsError(fileURL: NSURL, settings: NSDictionary, outError: any): AVAudioFile;
|
|
|
|
|
initForWritingSettingsCommonFormatInterleavedError(fileURL: NSURL, settings: NSDictionary, format: number, interleaved: boolean, outError: any): AVAudioFile;
|
|
|
|
|
readIntoBufferError(buffer: AVAudioPCMBuffer, outError: any): boolean;
|
|
|
|
|
readIntoBufferFrameCountError(buffer: AVAudioPCMBuffer, frames: number, outError: any): boolean;
|
|
|
|
|
writeFromBufferError(buffer: AVAudioPCMBuffer, outError: any): boolean;
|
|
|
|
|
initForReadingError(fileURL: NSURL): AVAudioFile;
|
|
|
|
|
initForReadingCommonFormatInterleavedError(fileURL: NSURL, format: number, interleaved: boolean): AVAudioFile;
|
|
|
|
|
initForWritingSettingsError(fileURL: NSURL, settings: NSDictionary): AVAudioFile;
|
|
|
|
|
initForWritingSettingsCommonFormatInterleavedError(fileURL: NSURL, settings: NSDictionary, format: number, interleaved: boolean): AVAudioFile;
|
|
|
|
|
readIntoBufferError(buffer: AVAudioPCMBuffer): boolean;
|
|
|
|
|
readIntoBufferFrameCountError(buffer: AVAudioPCMBuffer, frames: number): boolean;
|
|
|
|
|
writeFromBufferError(buffer: AVAudioPCMBuffer): boolean;
|
|
|
|
|
init(): AVAudioFile;
|
|
|
|
|
static new(): AVAudioFile;
|
|
|
|
|
static allocWithZone(zone: any): AVAudioFile;
|
|
|
|
@@ -10893,10 +10893,10 @@ declare class AVAudioPlayer extends NSObject {
|
|
|
|
|
constructor(url: NSURL, utiString: string, outError: any);
|
|
|
|
|
constructor(data: NSData, utiString: string, outError: any);
|
|
|
|
|
constructor();
|
|
|
|
|
initWithContentsOfURLError(url: NSURL, outError: any): AVAudioPlayer;
|
|
|
|
|
initWithDataError(data: NSData, outError: any): AVAudioPlayer;
|
|
|
|
|
initWithContentsOfURLFileTypeHintError(url: NSURL, utiString: string, outError: any): AVAudioPlayer;
|
|
|
|
|
initWithDataFileTypeHintError(data: NSData, utiString: string, outError: any): AVAudioPlayer;
|
|
|
|
|
initWithContentsOfURLError(url: NSURL): AVAudioPlayer;
|
|
|
|
|
initWithDataError(data: NSData): AVAudioPlayer;
|
|
|
|
|
initWithContentsOfURLFileTypeHintError(url: NSURL, utiString: string): AVAudioPlayer;
|
|
|
|
|
initWithDataFileTypeHintError(data: NSData, utiString: string): AVAudioPlayer;
|
|
|
|
|
prepareToPlay(): boolean;
|
|
|
|
|
play(): boolean;
|
|
|
|
|
playAtTime(time: number): boolean;
|
|
|
|
@@ -10970,7 +10970,7 @@ declare class AVAudioRecorder extends NSObject {
|
|
|
|
|
channelAssignments: NSArray;
|
|
|
|
|
constructor(url: NSURL, settings: NSDictionary, outError: any);
|
|
|
|
|
constructor();
|
|
|
|
|
initWithURLSettingsError(url: NSURL, settings: NSDictionary, outError: any): AVAudioRecorder;
|
|
|
|
|
initWithURLSettingsError(url: NSURL, settings: NSDictionary): AVAudioRecorder;
|
|
|
|
|
prepareToRecord(): boolean;
|
|
|
|
|
record(): boolean;
|
|
|
|
|
recordAtTime(time: number): boolean;
|
|
|
|
@@ -11025,24 +11025,24 @@ declare class AVAudioSession extends NSObject {
|
|
|
|
|
preferredHardwareSampleRate: number;
|
|
|
|
|
constructor();
|
|
|
|
|
static sharedInstance(): AVAudioSession;
|
|
|
|
|
setActiveError(active: boolean, outError: any): boolean;
|
|
|
|
|
setActiveWithOptionsError(active: boolean, options: number, outError: any): boolean;
|
|
|
|
|
setCategoryError(category: string, outError: any): boolean;
|
|
|
|
|
setCategoryWithOptionsError(category: string, options: number, outError: any): boolean;
|
|
|
|
|
setActiveError(active: boolean): boolean;
|
|
|
|
|
setActiveWithOptionsError(active: boolean, options: number): boolean;
|
|
|
|
|
setCategoryError(category: string): boolean;
|
|
|
|
|
setCategoryWithOptionsError(category: string, options: number): boolean;
|
|
|
|
|
recordPermission(): number;
|
|
|
|
|
requestRecordPermission(response: (arg1: boolean) => void): void;
|
|
|
|
|
setModeError(mode: string, outError: any): boolean;
|
|
|
|
|
overrideOutputAudioPortError(portOverride: number, outError: any): boolean;
|
|
|
|
|
setPreferredInputError(inPort: AVAudioSessionPortDescription, outError: any): boolean;
|
|
|
|
|
setPreferredSampleRateError(sampleRate: number, outError: any): boolean;
|
|
|
|
|
setPreferredIOBufferDurationError(duration: number, outError: any): boolean;
|
|
|
|
|
setPreferredInputNumberOfChannelsError(count: number, outError: any): boolean;
|
|
|
|
|
setPreferredOutputNumberOfChannelsError(count: number, outError: any): boolean;
|
|
|
|
|
setInputGainError(gain: number, outError: any): boolean;
|
|
|
|
|
setInputDataSourceError(dataSource: AVAudioSessionDataSourceDescription, outError: any): boolean;
|
|
|
|
|
setOutputDataSourceError(dataSource: AVAudioSessionDataSourceDescription, outError: any): boolean;
|
|
|
|
|
setActiveWithFlagsError(active: boolean, flags: number, outError: any): boolean;
|
|
|
|
|
setPreferredHardwareSampleRateError(sampleRate: number, outError: any): boolean;
|
|
|
|
|
setModeError(mode: string): boolean;
|
|
|
|
|
overrideOutputAudioPortError(portOverride: number): boolean;
|
|
|
|
|
setPreferredInputError(inPort: AVAudioSessionPortDescription): boolean;
|
|
|
|
|
setPreferredSampleRateError(sampleRate: number): boolean;
|
|
|
|
|
setPreferredIOBufferDurationError(duration: number): boolean;
|
|
|
|
|
setPreferredInputNumberOfChannelsError(count: number): boolean;
|
|
|
|
|
setPreferredOutputNumberOfChannelsError(count: number): boolean;
|
|
|
|
|
setInputGainError(gain: number): boolean;
|
|
|
|
|
setInputDataSourceError(dataSource: AVAudioSessionDataSourceDescription): boolean;
|
|
|
|
|
setOutputDataSourceError(dataSource: AVAudioSessionDataSourceDescription): boolean;
|
|
|
|
|
setActiveWithFlagsError(active: boolean, flags: number): boolean;
|
|
|
|
|
setPreferredHardwareSampleRateError(sampleRate: number): boolean;
|
|
|
|
|
init(): AVAudioSession;
|
|
|
|
|
static new(): AVAudioSession;
|
|
|
|
|
static allocWithZone(zone: any): AVAudioSession;
|
|
|
|
@@ -11070,7 +11070,7 @@ declare class AVAudioSessionPortDescription extends NSObject {
|
|
|
|
|
selectedDataSource: AVAudioSessionDataSourceDescription;
|
|
|
|
|
preferredDataSource: AVAudioSessionDataSourceDescription;
|
|
|
|
|
constructor();
|
|
|
|
|
setPreferredDataSourceError(dataSource: AVAudioSessionDataSourceDescription, outError: any): boolean;
|
|
|
|
|
setPreferredDataSourceError(dataSource: AVAudioSessionDataSourceDescription): boolean;
|
|
|
|
|
init(): AVAudioSessionPortDescription;
|
|
|
|
|
static new(): AVAudioSessionPortDescription;
|
|
|
|
|
static allocWithZone(zone: any): AVAudioSessionPortDescription;
|
|
|
|
@@ -11096,7 +11096,7 @@ declare class AVAudioSessionDataSourceDescription extends NSObject {
|
|
|
|
|
selectedPolarPattern: string;
|
|
|
|
|
preferredPolarPattern: string;
|
|
|
|
|
constructor();
|
|
|
|
|
setPreferredPolarPatternError(pattern: string, outError: any): boolean;
|
|
|
|
|
setPreferredPolarPatternError(pattern: string): boolean;
|
|
|
|
|
init(): AVAudioSessionDataSourceDescription;
|
|
|
|
|
static new(): AVAudioSessionDataSourceDescription;
|
|
|
|
|
static allocWithZone(zone: any): AVAudioSessionDataSourceDescription;
|
|
|
|
@@ -11225,9 +11225,9 @@ declare class AVAudioUnitSampler extends AVAudioUnitMIDIInstrument {
|
|
|
|
|
globalTuning: number;
|
|
|
|
|
constructor(description: AudioComponentDescription);
|
|
|
|
|
constructor();
|
|
|
|
|
loadSoundBankInstrumentAtURLProgramBankMSBBankLSBError(bankURL: NSURL, program: number, bankMSB: number, bankLSB: number, outError: any): boolean;
|
|
|
|
|
loadInstrumentAtURLError(instrumentURL: NSURL, outError: any): boolean;
|
|
|
|
|
loadAudioFilesAtURLsError(audioFiles: NSArray, outError: any): boolean;
|
|
|
|
|
loadSoundBankInstrumentAtURLProgramBankMSBBankLSBError(bankURL: NSURL, program: number, bankMSB: number, bankLSB: number): boolean;
|
|
|
|
|
loadInstrumentAtURLError(instrumentURL: NSURL): boolean;
|
|
|
|
|
loadAudioFilesAtURLsError(audioFiles: NSArray): boolean;
|
|
|
|
|
initWithAudioComponentDescription(description: AudioComponentDescription): AVAudioUnitSampler;
|
|
|
|
|
init(): AVAudioUnitSampler;
|
|
|
|
|
static new(): AVAudioUnitSampler;
|
|
|
|
@@ -11278,8 +11278,8 @@ declare class AVMIDIPlayer extends NSObject {
|
|
|
|
|
constructor(inURL: NSURL, bankURL: NSURL, outError: any);
|
|
|
|
|
constructor(data: NSData, bankURL: NSURL, outError: any);
|
|
|
|
|
constructor();
|
|
|
|
|
initWithContentsOfURLSoundBankURLError(inURL: NSURL, bankURL: NSURL, outError: any): AVMIDIPlayer;
|
|
|
|
|
initWithDataSoundBankURLError(data: NSData, bankURL: NSURL, outError: any): AVMIDIPlayer;
|
|
|
|
|
initWithContentsOfURLSoundBankURLError(inURL: NSURL, bankURL: NSURL): AVMIDIPlayer;
|
|
|
|
|
initWithDataSoundBankURLError(data: NSData, bankURL: NSURL): AVMIDIPlayer;
|
|
|
|
|
prepareToPlay(): void;
|
|
|
|
|
play(completionHandler: () => void): void;
|
|
|
|
|
stop(): void;
|
|
|
|
@@ -11329,7 +11329,7 @@ declare class AVAsset extends NSObject implements NSCopying, AVAsynchronousKeyVa
|
|
|
|
|
static alloc(): AVAsset;
|
|
|
|
|
static extend(methods: any, exposedMethods?: {name?: string; protocols?: any[]; exposedMethods?: {[name: string]: string}}): any;
|
|
|
|
|
copyWithZone(zone: any): any;
|
|
|
|
|
statusOfValueForKeyError(key: string, outError: any): number;
|
|
|
|
|
statusOfValueForKeyError(key: string): number;
|
|
|
|
|
loadValuesAsynchronouslyForKeysCompletionHandler(keys: NSArray, handler: () => void): void;
|
|
|
|
|
}
|
|
|
|
|
declare class AVURLAsset extends AVAsset {
|
|
|
|
@@ -11400,7 +11400,7 @@ declare class AVAssetImageGenerator extends NSObject {
|
|
|
|
|
constructor();
|
|
|
|
|
static assetImageGeneratorWithAsset(asset: AVAsset): AVAssetImageGenerator;
|
|
|
|
|
initWithAsset(asset: AVAsset): AVAssetImageGenerator;
|
|
|
|
|
copyCGImageAtTimeActualTimeError(requestedTime: CMTime, actualTime: any, outError: any): any;
|
|
|
|
|
copyCGImageAtTimeActualTimeError(requestedTime: CMTime, actualTime: any): any;
|
|
|
|
|
generateCGImagesAsynchronouslyForTimesCompletionHandler(requestedTimes: NSArray, handler: (arg1: CMTime, arg2: any, arg3: CMTime, arg4: number, arg5: NSError) => void): void;
|
|
|
|
|
cancelAllCGImageGeneration(): void;
|
|
|
|
|
init(): AVAssetImageGenerator;
|
|
|
|
@@ -11417,8 +11417,8 @@ declare class AVAssetReader extends NSObject {
|
|
|
|
|
outputs: NSArray;
|
|
|
|
|
constructor(asset: AVAsset, outError: any);
|
|
|
|
|
constructor();
|
|
|
|
|
static assetReaderWithAssetError(asset: AVAsset, outError: any): AVAssetReader;
|
|
|
|
|
initWithAssetError(asset: AVAsset, outError: any): AVAssetReader;
|
|
|
|
|
static assetReaderWithAssetError(asset: AVAsset): AVAssetReader;
|
|
|
|
|
initWithAssetError(asset: AVAsset): AVAssetReader;
|
|
|
|
|
canAddOutput(output: AVAssetReaderOutput): boolean;
|
|
|
|
|
addOutput(output: AVAssetReaderOutput): void;
|
|
|
|
|
startReading(): boolean;
|
|
|
|
@@ -11698,7 +11698,7 @@ declare class AVAssetResourceLoadingRequest extends NSObject {
|
|
|
|
|
constructor();
|
|
|
|
|
finishLoading(): void;
|
|
|
|
|
finishLoadingWithError(error: NSError): void;
|
|
|
|
|
streamingContentKeyRequestDataForAppContentIdentifierOptionsError(appIdentifier: NSData, contentIdentifier: NSData, options: NSDictionary, outError: any): NSData;
|
|
|
|
|
streamingContentKeyRequestDataForAppContentIdentifierOptionsError(appIdentifier: NSData, contentIdentifier: NSData, options: NSDictionary): NSData;
|
|
|
|
|
finishLoadingWithResponseDataRedirect(response: NSURLResponse, data: NSData, redirect: NSURLRequest): void;
|
|
|
|
|
init(): AVAssetResourceLoadingRequest;
|
|
|
|
|
static new(): AVAssetResourceLoadingRequest;
|
|
|
|
@@ -11785,7 +11785,7 @@ declare class AVAssetTrack extends NSObject implements NSCopying, AVAsynchronous
|
|
|
|
|
static alloc(): AVAssetTrack;
|
|
|
|
|
static extend(methods: any, exposedMethods?: {name?: string; protocols?: any[]; exposedMethods?: {[name: string]: string}}): any;
|
|
|
|
|
copyWithZone(zone: any): any;
|
|
|
|
|
statusOfValueForKeyError(key: string, outError: any): number;
|
|
|
|
|
statusOfValueForKeyError(key: string): number;
|
|
|
|
|
loadValuesAsynchronouslyForKeysCompletionHandler(keys: NSArray, handler: () => void): void;
|
|
|
|
|
}
|
|
|
|
|
declare class AVAssetTrackGroup extends NSObject implements NSCopying {
|
|
|
|
@@ -11853,8 +11853,8 @@ declare class AVAssetWriter extends NSObject {
|
|
|
|
|
inputGroups: NSArray;
|
|
|
|
|
constructor(outputURL: NSURL, outputFileType: string, outError: any);
|
|
|
|
|
constructor();
|
|
|
|
|
static assetWriterWithURLFileTypeError(outputURL: NSURL, outputFileType: string, outError: any): AVAssetWriter;
|
|
|
|
|
initWithURLFileTypeError(outputURL: NSURL, outputFileType: string, outError: any): AVAssetWriter;
|
|
|
|
|
static assetWriterWithURLFileTypeError(outputURL: NSURL, outputFileType: string): AVAssetWriter;
|
|
|
|
|
initWithURLFileTypeError(outputURL: NSURL, outputFileType: string): AVAssetWriter;
|
|
|
|
|
canApplyOutputSettingsForMediaType(outputSettings: NSDictionary, mediaType: string): boolean;
|
|
|
|
|
canAddInput(input: AVAssetWriterInput): boolean;
|
|
|
|
|
addInput(input: AVAssetWriterInput): void;
|
|
|
|
@@ -12070,12 +12070,12 @@ declare class AVCaptureDevice extends NSObject {
|
|
|
|
|
static defaultDeviceWithMediaType(mediaType: string): AVCaptureDevice;
|
|
|
|
|
static deviceWithUniqueID(deviceUniqueID: string): AVCaptureDevice;
|
|
|
|
|
hasMediaType(mediaType: string): boolean;
|
|
|
|
|
lockForConfiguration(outError: any): boolean;
|
|
|
|
|
lockForConfiguration(): boolean;
|
|
|
|
|
unlockForConfiguration(): void;
|
|
|
|
|
supportsAVCaptureSessionPreset(preset: string): boolean;
|
|
|
|
|
isFlashModeSupported(flashMode: number): boolean;
|
|
|
|
|
isTorchModeSupported(torchMode: number): boolean;
|
|
|
|
|
setTorchModeOnWithLevelError(torchLevel: number, outError: any): boolean;
|
|
|
|
|
setTorchModeOnWithLevelError(torchLevel: number): boolean;
|
|
|
|
|
isFocusModeSupported(focusMode: number): boolean;
|
|
|
|
|
setFocusModeLockedWithLensPositionCompletionHandler(lensPosition: number, handler: (arg1: CMTime) => void): void;
|
|
|
|
|
isExposureModeSupported(exposureMode: number): boolean;
|
|
|
|
@@ -12159,8 +12159,8 @@ declare class AVCaptureDeviceInput extends AVCaptureInput {
|
|
|
|
|
device: AVCaptureDevice;
|
|
|
|
|
constructor(device: AVCaptureDevice, outError: any);
|
|
|
|
|
constructor();
|
|
|
|
|
static deviceInputWithDeviceError(device: AVCaptureDevice, outError: any): any;
|
|
|
|
|
initWithDeviceError(device: AVCaptureDevice, outError: any): AVCaptureDeviceInput;
|
|
|
|
|
static deviceInputWithDeviceError(device: AVCaptureDevice): any;
|
|
|
|
|
initWithDeviceError(device: AVCaptureDevice): AVCaptureDeviceInput;
|
|
|
|
|
init(): AVCaptureDeviceInput;
|
|
|
|
|
static new(): AVCaptureDeviceInput;
|
|
|
|
|
static allocWithZone(zone: any): AVCaptureDeviceInput;
|
|
|
|
@@ -12420,7 +12420,7 @@ declare class AVMutableComposition extends AVComposition {
|
|
|
|
|
naturalSize: CGSize;
|
|
|
|
|
constructor();
|
|
|
|
|
static composition(): AVMutableComposition;
|
|
|
|
|
insertTimeRangeOfAssetAtTimeError(timeRange: CMTimeRange, asset: AVAsset, startTime: CMTime, outError: any): boolean;
|
|
|
|
|
insertTimeRangeOfAssetAtTimeError(timeRange: CMTimeRange, asset: AVAsset, startTime: CMTime): boolean;
|
|
|
|
|
insertEmptyTimeRange(timeRange: CMTimeRange): void;
|
|
|
|
|
removeTimeRange(timeRange: CMTimeRange): void;
|
|
|
|
|
scaleTimeRangeToDuration(timeRange: CMTimeRange, duration: CMTime): void;
|
|
|
|
@@ -12449,12 +12449,12 @@ declare class AVMutableCompositionTrack extends AVCompositionTrack {
|
|
|
|
|
preferredVolume: number;
|
|
|
|
|
segments: NSArray;
|
|
|
|
|
constructor();
|
|
|
|
|
insertTimeRangeOfTrackAtTimeError(timeRange: CMTimeRange, track: AVAssetTrack, startTime: CMTime, error: any): boolean;
|
|
|
|
|
insertTimeRangesOfTracksAtTimeError(timeRanges: NSArray, tracks: NSArray, startTime: CMTime, error: any): boolean;
|
|
|
|
|
insertTimeRangeOfTrackAtTimeError(timeRange: CMTimeRange, track: AVAssetTrack, startTime: CMTime): boolean;
|
|
|
|
|
insertTimeRangesOfTracksAtTimeError(timeRanges: NSArray, tracks: NSArray, startTime: CMTime): boolean;
|
|
|
|
|
insertEmptyTimeRange(timeRange: CMTimeRange): void;
|
|
|
|
|
removeTimeRange(timeRange: CMTimeRange): void;
|
|
|
|
|
scaleTimeRangeToDuration(timeRange: CMTimeRange, duration: CMTime): void;
|
|
|
|
|
validateTrackSegmentsError(trackSegments: NSArray, error: any): boolean;
|
|
|
|
|
validateTrackSegmentsError(trackSegments: NSArray): boolean;
|
|
|
|
|
init(): AVMutableCompositionTrack;
|
|
|
|
|
static new(): AVMutableCompositionTrack;
|
|
|
|
|
static allocWithZone(zone: any): AVMutableCompositionTrack;
|
|
|
|
@@ -12507,7 +12507,7 @@ declare class AVMetadataItem extends NSObject implements AVAsynchronousKeyValueL
|
|
|
|
|
static allocWithZone(zone: any): AVMetadataItem;
|
|
|
|
|
static alloc(): AVMetadataItem;
|
|
|
|
|
static extend(methods: any, exposedMethods?: {name?: string; protocols?: any[]; exposedMethods?: {[name: string]: string}}): any;
|
|
|
|
|
statusOfValueForKeyError(key: string, outError: any): number;
|
|
|
|
|
statusOfValueForKeyError(key: string): number;
|
|
|
|
|
loadValuesAsynchronouslyForKeysCompletionHandler(keys: NSArray, handler: () => void): void;
|
|
|
|
|
copyWithZone(zone: any): any;
|
|
|
|
|
mutableCopyWithZone(zone: any): any;
|
|
|
|
@@ -14454,26 +14454,26 @@ declare class EKEventStore extends NSObject {
|
|
|
|
|
calendarsForEntityType(entityType: number): NSArray;
|
|
|
|
|
defaultCalendarForNewReminders(): EKCalendar;
|
|
|
|
|
calendarWithIdentifier(identifier: string): EKCalendar;
|
|
|
|
|
saveCalendarCommitError(calendar: EKCalendar, commit: boolean, error: any): boolean;
|
|
|
|
|
removeCalendarCommitError(calendar: EKCalendar, commit: boolean, error: any): boolean;
|
|
|
|
|
saveCalendarCommitError(calendar: EKCalendar, commit: boolean): boolean;
|
|
|
|
|
removeCalendarCommitError(calendar: EKCalendar, commit: boolean): boolean;
|
|
|
|
|
calendarItemWithIdentifier(identifier: string): EKCalendarItem;
|
|
|
|
|
calendarItemsWithExternalIdentifier(externalIdentifier: string): NSArray;
|
|
|
|
|
saveEventSpanError(event: EKEvent, span: number, error: any): boolean;
|
|
|
|
|
removeEventSpanError(event: EKEvent, span: number, error: any): boolean;
|
|
|
|
|
saveEventSpanCommitError(event: EKEvent, span: number, commit: boolean, error: any): boolean;
|
|
|
|
|
removeEventSpanCommitError(event: EKEvent, span: number, commit: boolean, error: any): boolean;
|
|
|
|
|
saveEventSpanError(event: EKEvent, span: number): boolean;
|
|
|
|
|
removeEventSpanError(event: EKEvent, span: number): boolean;
|
|
|
|
|
saveEventSpanCommitError(event: EKEvent, span: number, commit: boolean): boolean;
|
|
|
|
|
removeEventSpanCommitError(event: EKEvent, span: number, commit: boolean): boolean;
|
|
|
|
|
eventWithIdentifier(identifier: string): EKEvent;
|
|
|
|
|
eventsMatchingPredicate(predicate: NSPredicate): NSArray;
|
|
|
|
|
enumerateEventsMatchingPredicateUsingBlock(predicate: NSPredicate, block: (arg1: EKEvent, arg2: any) => void): void;
|
|
|
|
|
predicateForEventsWithStartDateEndDateCalendars(startDate: NSDate, endDate: NSDate, calendars: NSArray): NSPredicate;
|
|
|
|
|
saveReminderCommitError(reminder: EKReminder, commit: boolean, error: any): boolean;
|
|
|
|
|
removeReminderCommitError(reminder: EKReminder, commit: boolean, error: any): boolean;
|
|
|
|
|
saveReminderCommitError(reminder: EKReminder, commit: boolean): boolean;
|
|
|
|
|
removeReminderCommitError(reminder: EKReminder, commit: boolean): boolean;
|
|
|
|
|
fetchRemindersMatchingPredicateCompletion(predicate: NSPredicate, completion: (arg1: NSArray) => void): any;
|
|
|
|
|
cancelFetchRequest(fetchIdentifier: any): void;
|
|
|
|
|
predicateForRemindersInCalendars(calendars: NSArray): NSPredicate;
|
|
|
|
|
predicateForIncompleteRemindersWithDueDateStartingEndingCalendars(startDate: NSDate, endDate: NSDate, calendars: NSArray): NSPredicate;
|
|
|
|
|
predicateForCompletedRemindersWithCompletionDateStartingEndingCalendars(startDate: NSDate, endDate: NSDate, calendars: NSArray): NSPredicate;
|
|
|
|
|
commit(error: any): boolean;
|
|
|
|
|
commit(): boolean;
|
|
|
|
|
reset(): void;
|
|
|
|
|
refreshSourcesIfNecessary(): void;
|
|
|
|
|
init(): EKEventStore;
|
|
|
|
@@ -15186,14 +15186,14 @@ declare class GKMatch extends NSObject {
|
|
|
|
|
expectedPlayerCount: number;
|
|
|
|
|
playerIDs: NSArray;
|
|
|
|
|
constructor();
|
|
|
|
|
sendDataToPlayersDataModeError(data: NSData, players: NSArray, mode: number, error: any): boolean;
|
|
|
|
|
sendDataToAllPlayersWithDataModeError(data: NSData, mode: number, error: any): boolean;
|
|
|
|
|
sendDataToPlayersDataModeError(data: NSData, players: NSArray, mode: number): boolean;
|
|
|
|
|
sendDataToAllPlayersWithDataModeError(data: NSData, mode: number): boolean;
|
|
|
|
|
disconnect(): void;
|
|
|
|
|
voiceChatWithName(name: string): GKVoiceChat;
|
|
|
|
|
chooseBestHostingPlayerWithCompletionHandler(completionHandler: (arg1: GKPlayer) => void): void;
|
|
|
|
|
rematchWithCompletionHandler(completionHandler: (arg1: GKMatch, arg2: NSError) => void): void;
|
|
|
|
|
chooseBestHostPlayerWithCompletionHandler(completionHandler: (arg1: string) => void): void;
|
|
|
|
|
sendDataToPlayersWithDataModeError(data: NSData, playerIDs: NSArray, mode: number, error: any): boolean;
|
|
|
|
|
sendDataToPlayersWithDataModeError(data: NSData, playerIDs: NSArray, mode: number): boolean;
|
|
|
|
|
init(): GKMatch;
|
|
|
|
|
static new(): GKMatch;
|
|
|
|
|
static allocWithZone(zone: any): GKMatch;
|
|
|
|
@@ -15248,12 +15248,12 @@ declare class GKSession extends NSObject {
|
|
|
|
|
constructor();
|
|
|
|
|
initWithSessionIDDisplayNameSessionMode(sessionID: string, name: string, mode: number): GKSession;
|
|
|
|
|
displayNameForPeer(peerID: string): string;
|
|
|
|
|
sendDataToPeersWithDataModeError(data: NSData, peers: NSArray, mode: number, error: any): boolean;
|
|
|
|
|
sendDataToAllPeersWithDataModeError(data: NSData, mode: number, error: any): boolean;
|
|
|
|
|
sendDataToPeersWithDataModeError(data: NSData, peers: NSArray, mode: number): boolean;
|
|
|
|
|
sendDataToAllPeersWithDataModeError(data: NSData, mode: number): boolean;
|
|
|
|
|
setDataReceiveHandlerWithContext(handler: any, context: any): void;
|
|
|
|
|
connectToPeerWithTimeout(peerID: string, timeout: number): void;
|
|
|
|
|
cancelConnectToPeer(peerID: string): void;
|
|
|
|
|
acceptConnectionFromPeerError(peerID: string, error: any): boolean;
|
|
|
|
|
acceptConnectionFromPeerError(peerID: string): boolean;
|
|
|
|
|
denyConnectionFromPeer(peerID: string): void;
|
|
|
|
|
disconnectPeerFromAllPeers(peerID: string): void;
|
|
|
|
|
disconnectFromAllPeers(): void;
|
|
|
|
@@ -15339,9 +15339,9 @@ declare class GKVoiceChatService extends NSObject {
|
|
|
|
|
constructor();
|
|
|
|
|
static defaultVoiceChatService(): GKVoiceChatService;
|
|
|
|
|
static isVoIPAllowed(): boolean;
|
|
|
|
|
startVoiceChatWithParticipantIDError(participantID: string, error: any): boolean;
|
|
|
|
|
startVoiceChatWithParticipantIDError(participantID: string): boolean;
|
|
|
|
|
stopVoiceChatWithParticipantID(participantID: string): void;
|
|
|
|
|
acceptCallIDError(callID: number, error: any): boolean;
|
|
|
|
|
acceptCallIDError(callID: number): boolean;
|
|
|
|
|
denyCallID(callID: number): void;
|
|
|
|
|
receivedRealTimeDataFromParticipantID(audio: NSData, participantID: string): void;
|
|
|
|
|
receivedDataFromParticipantID(arbitraryData: NSData, participantID: string): void;
|
|
|
|
@@ -15555,13 +15555,13 @@ declare class GLKTextureInfo extends NSObject implements NSCopying {
|
|
|
|
|
declare class GLKTextureLoader extends NSObject {
|
|
|
|
|
constructor(sharegroup: EAGLSharegroup);
|
|
|
|
|
constructor();
|
|
|
|
|
static textureWithContentsOfFileOptionsError(path: string, options: NSDictionary, outError: any): GLKTextureInfo;
|
|
|
|
|
static textureWithContentsOfURLOptionsError(url: NSURL, options: NSDictionary, outError: any): GLKTextureInfo;
|
|
|
|
|
static textureWithContentsOfDataOptionsError(data: NSData, options: NSDictionary, outError: any): GLKTextureInfo;
|
|
|
|
|
static textureWithCGImageOptionsError(cgImage: any, options: NSDictionary, outError: any): GLKTextureInfo;
|
|
|
|
|
static cubeMapWithContentsOfFilesOptionsError(paths: NSArray, options: NSDictionary, outError: any): GLKTextureInfo;
|
|
|
|
|
static cubeMapWithContentsOfFileOptionsError(path: string, options: NSDictionary, outError: any): GLKTextureInfo;
|
|
|
|
|
static cubeMapWithContentsOfURLOptionsError(url: NSURL, options: NSDictionary, outError: any): GLKTextureInfo;
|
|
|
|
|
static textureWithContentsOfFileOptionsError(path: string, options: NSDictionary): GLKTextureInfo;
|
|
|
|
|
static textureWithContentsOfURLOptionsError(url: NSURL, options: NSDictionary): GLKTextureInfo;
|
|
|
|
|
static textureWithContentsOfDataOptionsError(data: NSData, options: NSDictionary): GLKTextureInfo;
|
|
|
|
|
static textureWithCGImageOptionsError(cgImage: any, options: NSDictionary): GLKTextureInfo;
|
|
|
|
|
static cubeMapWithContentsOfFilesOptionsError(paths: NSArray, options: NSDictionary): GLKTextureInfo;
|
|
|
|
|
static cubeMapWithContentsOfFileOptionsError(path: string, options: NSDictionary): GLKTextureInfo;
|
|
|
|
|
static cubeMapWithContentsOfURLOptionsError(url: NSURL, options: NSDictionary): GLKTextureInfo;
|
|
|
|
|
initWithSharegroup(sharegroup: EAGLSharegroup): GLKTextureLoader;
|
|
|
|
|
textureWithContentsOfFileOptionsQueueCompletionHandler(path: string, options: NSDictionary, queue: NSObject, block: (arg1: GLKTextureInfo, arg2: NSError) => void): void;
|
|
|
|
|
textureWithContentsOfURLOptionsQueueCompletionHandler(url: NSURL, options: NSDictionary, queue: NSObject, block: (arg1: GLKTextureInfo, arg2: NSError) => void): void;
|
|
|
|
@@ -15717,9 +15717,9 @@ declare class HKHealthStore extends NSObject {
|
|
|
|
|
deleteObjectWithCompletion(object: HKObject, completion: (arg1: boolean, arg2: NSError) => void): void;
|
|
|
|
|
executeQuery(query: HKQuery): void;
|
|
|
|
|
stopQuery(query: HKQuery): void;
|
|
|
|
|
dateOfBirthWithError(error: any): NSDate;
|
|
|
|
|
biologicalSexWithError(error: any): HKBiologicalSexObject;
|
|
|
|
|
bloodTypeWithError(error: any): HKBloodTypeObject;
|
|
|
|
|
dateOfBirthWithError(): NSDate;
|
|
|
|
|
biologicalSexWithError(): HKBiologicalSexObject;
|
|
|
|
|
bloodTypeWithError(): HKBloodTypeObject;
|
|
|
|
|
addSamplesToWorkoutCompletion(samples: NSArray, workout: HKWorkout, completion: (arg1: boolean, arg2: NSError) => void): void;
|
|
|
|
|
enableBackgroundDeliveryForTypeFrequencyWithCompletion(type: HKObjectType, frequency: number, completion: (arg1: boolean, arg2: NSError) => void): void;
|
|
|
|
|
disableBackgroundDeliveryForTypeWithCompletion(type: HKObjectType, completion: (arg1: boolean, arg2: NSError) => void): void;
|
|
|
|
@@ -16949,7 +16949,7 @@ declare class JSVirtualMachine extends NSObject {
|
|
|
|
|
declare class LAContext extends NSObject {
|
|
|
|
|
localizedFallbackTitle: string;
|
|
|
|
|
constructor();
|
|
|
|
|
canEvaluatePolicyError(policy: number, error: any): boolean;
|
|
|
|
|
canEvaluatePolicyError(policy: number): boolean;
|
|
|
|
|
evaluatePolicyLocalizedReasonReply(policy: number, localizedReason: string, reply: (arg1: boolean, arg2: NSError) => void): void;
|
|
|
|
|
init(): LAContext;
|
|
|
|
|
static new(): LAContext;
|
|
|
|
@@ -17858,10 +17858,10 @@ declare class MCSession extends NSObject {
|
|
|
|
|
constructor();
|
|
|
|
|
initWithPeer(myPeerID: MCPeerID): MCSession;
|
|
|
|
|
initWithPeerSecurityIdentityEncryptionPreference(myPeerID: MCPeerID, identity: NSArray, encryptionPreference: number): MCSession;
|
|
|
|
|
sendDataToPeersWithModeError(data: NSData, peerIDs: NSArray, mode: number, error: any): boolean;
|
|
|
|
|
sendDataToPeersWithModeError(data: NSData, peerIDs: NSArray, mode: number): boolean;
|
|
|
|
|
disconnect(): void;
|
|
|
|
|
sendResourceAtURLWithNameToPeerWithCompletionHandler(resourceURL: NSURL, resourceName: string, peerID: MCPeerID, completionHandler: (arg1: NSError) => void): NSProgress;
|
|
|
|
|
startStreamWithNameToPeerError(streamName: string, peerID: MCPeerID, error: any): NSOutputStream;
|
|
|
|
|
startStreamWithNameToPeerError(streamName: string, peerID: MCPeerID): NSOutputStream;
|
|
|
|
|
nearbyConnectionDataForPeerWithCompletionHandler(peerID: MCPeerID, completionHandler: (arg1: NSData, arg2: NSError) => void): void;
|
|
|
|
|
connectPeerWithNearbyConnectionData(peerID: MCPeerID, data: NSData): void;
|
|
|
|
|
cancelConnectPeer(peerID: MCPeerID): void;
|
|
|
|
@@ -17981,7 +17981,7 @@ declare class NEVPNManager extends NSObject {
|
|
|
|
|
declare class NEVPNConnection extends NSObject {
|
|
|
|
|
status: number;
|
|
|
|
|
constructor();
|
|
|
|
|
startVPNTunnelAndReturnError(error: any): boolean;
|
|
|
|
|
startVPNTunnelAndReturnError(): boolean;
|
|
|
|
|
stopVPNTunnel(): void;
|
|
|
|
|
init(): NEVPNConnection;
|
|
|
|
|
static new(): NEVPNConnection;
|
|
|
|
@@ -18134,7 +18134,7 @@ declare class PHPhotoLibrary extends NSObject {
|
|
|
|
|
static authorizationStatus(): number;
|
|
|
|
|
static requestAuthorization(handler: (arg1: number) => void): void;
|
|
|
|
|
performChangesCompletionHandler(changeBlock: () => void, completionHandler: (arg1: boolean, arg2: NSError) => void): void;
|
|
|
|
|
performChangesAndWaitError(changeBlock: () => void, error: any): boolean;
|
|
|
|
|
performChangesAndWaitError(changeBlock: () => void): boolean;
|
|
|
|
|
registerChangeObserver(observer: any): void;
|
|
|
|
|
unregisterChangeObserver(observer: any): void;
|
|
|
|
|
init(): PHPhotoLibrary;
|
|
|
|
@@ -18553,7 +18553,7 @@ declare class SSReadingList extends NSObject {
|
|
|
|
|
constructor();
|
|
|
|
|
static defaultReadingList(): SSReadingList;
|
|
|
|
|
static supportsURL(URL: NSURL): boolean;
|
|
|
|
|
addReadingListItemWithURLTitlePreviewTextError(URL: NSURL, title: string, previewText: string, error: any): boolean;
|
|
|
|
|
addReadingListItemWithURLTitlePreviewTextError(URL: NSURL, title: string, previewText: string): boolean;
|
|
|
|
|
init(): SSReadingList;
|
|
|
|
|
static new(): SSReadingList;
|
|
|
|
|
static allocWithZone(zone: any): SSReadingList;
|
|
|
|
@@ -20807,16 +20807,16 @@ interface MTLDevice {
|
|
|
|
|
newTextureWithDescriptor(descriptor: MTLTextureDescriptor): any;
|
|
|
|
|
newSamplerStateWithDescriptor(descriptor: MTLSamplerDescriptor): any;
|
|
|
|
|
newDefaultLibrary(): any;
|
|
|
|
|
newLibraryWithFileError(filepath: string, error: any): any;
|
|
|
|
|
newLibraryWithDataError(data: NSObject, error: any): any;
|
|
|
|
|
newLibraryWithSourceOptionsError(source: string, options: MTLCompileOptions, error: any): any;
|
|
|
|
|
newLibraryWithFileError(filepath: string): any;
|
|
|
|
|
newLibraryWithDataError(data: NSObject): any;
|
|
|
|
|
newLibraryWithSourceOptionsError(source: string, options: MTLCompileOptions): any;
|
|
|
|
|
newLibraryWithSourceOptionsCompletionHandler(source: string, options: MTLCompileOptions, completionHandler: (arg1: any, arg2: NSError) => void): void;
|
|
|
|
|
newRenderPipelineStateWithDescriptorError(descriptor: MTLRenderPipelineDescriptor, error: any): any;
|
|
|
|
|
newRenderPipelineStateWithDescriptorOptionsReflectionError(descriptor: MTLRenderPipelineDescriptor, options: number, reflection: any, error: any): any;
|
|
|
|
|
newRenderPipelineStateWithDescriptorError(descriptor: MTLRenderPipelineDescriptor): any;
|
|
|
|
|
newRenderPipelineStateWithDescriptorOptionsReflectionError(descriptor: MTLRenderPipelineDescriptor, options: number, reflection: any): any;
|
|
|
|
|
newRenderPipelineStateWithDescriptorCompletionHandler(descriptor: MTLRenderPipelineDescriptor, completionHandler: (arg1: any, arg2: NSError) => void): void;
|
|
|
|
|
newRenderPipelineStateWithDescriptorOptionsCompletionHandler(descriptor: MTLRenderPipelineDescriptor, options: number, completionHandler: (arg1: any, arg2: MTLRenderPipelineReflection, arg3: NSError) => void): void;
|
|
|
|
|
newComputePipelineStateWithFunctionError(computeFunction: any, error: any): any;
|
|
|
|
|
newComputePipelineStateWithFunctionOptionsReflectionError(computeFunction: any, options: number, reflection: any, error: any): any;
|
|
|
|
|
newComputePipelineStateWithFunctionError(computeFunction: any): any;
|
|
|
|
|
newComputePipelineStateWithFunctionOptionsReflectionError(computeFunction: any, options: number, reflection: any): any;
|
|
|
|
|
newComputePipelineStateWithFunctionCompletionHandler(computeFunction: any, completionHandler: (arg1: any, arg2: NSError) => void): void;
|
|
|
|
|
newComputePipelineStateWithFunctionOptionsCompletionHandler(computeFunction: any, options: number, completionHandler: (arg1: any, arg2: MTLComputePipelineReflection, arg3: NSError) => void): void;
|
|
|
|
|
supportsFeatureSet(featureSet: number): boolean;
|
|
|
|
@@ -21010,7 +21010,7 @@ interface AVAudioSessionDelegate {
|
|
|
|
|
inputIsAvailableChanged?(isInputAvailable: boolean): void;
|
|
|
|
|
}
|
|
|
|
|
interface AVAsynchronousKeyValueLoading {
|
|
|
|
|
statusOfValueForKeyError(key: string, outError: any): number;
|
|
|
|
|
statusOfValueForKeyError(key: string): number;
|
|
|
|
|
loadValuesAsynchronouslyForKeysCompletionHandler(keys: NSArray, handler: () => void): void;
|
|
|
|
|
}
|
|
|
|
|
interface AVVideoCompositing {
|
|
|
|
|