mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Add iOS 10 .d.ts-es
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
|
||||
declare class NSObject implements NSObjectProtocol {
|
||||
|
||||
static accessInstanceVariablesDirectly(): boolean;
|
||||
|
||||
static alloc(): NSObject;
|
||||
|
||||
static automaticallyNotifiesObserversForKey(key: string): boolean;
|
||||
@@ -59,6 +57,8 @@ declare class NSObject implements NSObjectProtocol {
|
||||
|
||||
accessibilityCustomActions: NSArray<UIAccessibilityCustomAction>;
|
||||
|
||||
accessibilityCustomRotors: NSArray<UIAccessibilityCustomRotor>;
|
||||
|
||||
accessibilityElements: NSArray<any>;
|
||||
|
||||
accessibilityElementsHidden: boolean;
|
||||
@@ -93,6 +93,8 @@ declare class NSObject implements NSObjectProtocol {
|
||||
|
||||
shouldGroupAccessibilityChildren: boolean;
|
||||
|
||||
/* readonly */ static accessInstanceVariablesDirectly: boolean;
|
||||
|
||||
/* readonly */ debugDescription: string; // inherited from NSObjectProtocol
|
||||
|
||||
/* readonly */ description: string; // inherited from NSObjectProtocol
|
||||
@@ -131,14 +133,8 @@ declare class NSObject implements NSObjectProtocol {
|
||||
|
||||
accessibilityScroll(direction: UIAccessibilityScrollDirection): boolean;
|
||||
|
||||
actionForLayerForKey(layer: CALayer, event: string): CAAction;
|
||||
|
||||
addObserverForKeyPathOptionsContext(observer: NSObject, keyPath: string, options: NSKeyValueObservingOptions, context: interop.Pointer | interop.Reference<any>): void;
|
||||
|
||||
animationDidStart(anim: CAAnimation): void;
|
||||
|
||||
animationDidStopFinished(anim: CAAnimation, flag: boolean): void;
|
||||
|
||||
attemptRecoveryFromErrorOptionIndex(error: NSError, recoveryOptionIndex: number): boolean;
|
||||
|
||||
attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo(error: NSError, recoveryOptionIndex: number, delegate: any, didRecoverSelector: string, contextInfo: interop.Pointer | interop.Reference<any>): void;
|
||||
@@ -163,12 +159,8 @@ declare class NSObject implements NSObjectProtocol {
|
||||
|
||||
didChangeValuesAtIndexesForKey(changeKind: NSKeyValueChange, indexes: NSIndexSet, key: string): void;
|
||||
|
||||
displayLayer(layer: CALayer): void;
|
||||
|
||||
doesNotRecognizeSelector(aSelector: string): void;
|
||||
|
||||
drawLayerInContext(layer: CALayer, ctx: any): void;
|
||||
|
||||
fileManagerShouldProceedAfterError(fm: NSFileManager, errorInfo: NSDictionary<any, any>): boolean;
|
||||
|
||||
fileManagerWillProcessPath(fm: NSFileManager, path: string): void;
|
||||
@@ -189,8 +181,6 @@ declare class NSObject implements NSObjectProtocol {
|
||||
|
||||
isMemberOfClass(aClass: typeof NSObject): boolean;
|
||||
|
||||
layoutSublayersOfLayer(layer: CALayer): void;
|
||||
|
||||
methodForSelector(aSelector: string): interop.FunctionReference<(p1: any, p2: string) => any>;
|
||||
|
||||
methodSignatureForSelector(aSelector: string): NSMethodSignature;
|
||||
@@ -564,8 +554,12 @@ declare function object_setClass(obj: any, cls: typeof NSObject): typeof NSObjec
|
||||
|
||||
declare function object_setInstanceVariable(obj: any, name: string, value: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
||||
|
||||
declare function object_setInstanceVariableWithStrongDefault(obj: any, name: string, value: interop.Pointer | interop.Reference<any>): interop.Pointer | interop.Reference<any>;
|
||||
|
||||
declare function object_setIvar(obj: any, ivar: interop.Pointer | interop.Reference<any>, value: any): void;
|
||||
|
||||
declare function object_setIvarWithStrongDefault(obj: any, ivar: interop.Pointer | interop.Reference<any>, value: any): void;
|
||||
|
||||
declare function property_copyAttributeList(property: interop.Pointer | interop.Reference<any>, outCount: interop.Pointer | interop.Reference<number>): interop.Pointer | interop.Reference<objc_property_attribute_t>;
|
||||
|
||||
declare function property_copyAttributeValue(property: interop.Pointer | interop.Reference<any>, attributeName: string): string;
|
||||
@@ -586,6 +580,8 @@ declare function protocol_copyMethodDescriptionList(p: any /* Protocol */, isReq
|
||||
|
||||
declare function protocol_copyPropertyList(proto: any /* Protocol */, outCount: interop.Pointer | interop.Reference<number>): interop.Pointer | interop.Reference<interop.Pointer | interop.Reference<any>>;
|
||||
|
||||
declare function protocol_copyPropertyList2(proto: any /* Protocol */, outCount: interop.Pointer | interop.Reference<number>, isRequiredProperty: boolean, isInstanceProperty: boolean): interop.Pointer | interop.Reference<interop.Pointer | interop.Reference<any>>;
|
||||
|
||||
declare function protocol_copyProtocolList(proto: any /* Protocol */, outCount: interop.Pointer | interop.Reference<number>): interop.Pointer | interop.Reference<any /* Protocol */>;
|
||||
|
||||
declare function protocol_getMethodDescription(p: any /* Protocol */, aSel: string, isRequiredMethod: boolean, isInstanceMethod: boolean): objc_method_description;
|
||||
|
||||
Reference in New Issue
Block a user