declare function CGAffineTransformFromString(string: string): CGAffineTransform; declare function CGPointFromString(string: string): CGPoint; declare function CGRectFromString(string: string): CGRect; declare function CGSizeFromString(string: string): CGSize; declare function CGVectorFromString(string: string): CGVector; declare var NSAttachmentAttributeName: string; declare const NSAttachmentCharacter: number; declare var NSBackgroundColorAttributeName: string; declare var NSBackgroundColorDocumentAttribute: string; declare var NSBaselineOffsetAttributeName: string; declare var NSCharacterEncodingDocumentAttribute: string; declare const enum NSControlCharacterAction { ZeroAdvancement = 1, Whitespace = 2, HorizontalTab = 4, LineBreak = 8, ParagraphBreak = 16, ContainerBreak = 32 } declare const NSControlCharacterContainerBreakAction: number; declare const NSControlCharacterHorizontalTabAction: number; declare const NSControlCharacterLineBreakAction: number; declare const NSControlCharacterParagraphBreakAction: number; declare const NSControlCharacterWhitespaceAction: number; declare const NSControlCharacterZeroAdvancementAction: number; declare class NSDataAsset extends NSObject implements NSCopying { static alloc(): NSDataAsset; // inherited from NSObject static new(): NSDataAsset; // inherited from NSObject readonly data: NSData; readonly name: string; readonly typeIdentifier: string; constructor(o: { name: string; }); constructor(o: { name: string; bundle: NSBundle; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; initWithName(name: string): this; initWithNameBundle(name: string, bundle: NSBundle): this; } declare var NSDefaultAttributesDocumentAttribute: string; declare var NSDefaultTabIntervalDocumentAttribute: string; declare var NSDocumentTypeDocumentAttribute: string; declare var NSExpansionAttributeName: string; declare class NSFileProviderExtension extends NSObject { static alloc(): NSFileProviderExtension; // inherited from NSObject static new(): NSFileProviderExtension; // inherited from NSObject static placeholderURLForURL(url: NSURL): NSURL; static writePlaceholderAtURLWithMetadataError(placeholderURL: NSURL, metadata: NSDictionary): boolean; readonly documentStorageURL: NSURL; readonly providerIdentifier: string; URLForItemWithPersistentIdentifier(identifier: string): NSURL; itemChangedAtURL(url: NSURL): void; persistentIdentifierForItemAtURL(url: NSURL): string; providePlaceholderAtURLCompletionHandler(url: NSURL, completionHandler: (p1: NSError) => void): void; startProvidingItemAtURLCompletionHandler(url: NSURL, completionHandler: (p1: NSError) => void): void; stopProvidingItemAtURL(url: NSURL): void; } declare var NSFontAttributeName: string; declare var NSForegroundColorAttributeName: string; declare const enum NSGlyphProperty { Null = 1, ControlCharacter = 2, Elastic = 4, NonBaseCharacter = 8 } declare var NSHTMLTextDocumentType: string; declare var NSHyphenationFactorDocumentAttribute: string; declare var NSKernAttributeName: string; declare class NSLayoutAnchor extends NSObject { static alloc(): NSLayoutAnchor; // inherited from NSObject static new(): NSLayoutAnchor; // inherited from NSObject constraintEqualToAnchor(anchor: NSLayoutAnchor): NSLayoutConstraint; constraintEqualToAnchorConstant(anchor: NSLayoutAnchor, c: number): NSLayoutConstraint; constraintGreaterThanOrEqualToAnchor(anchor: NSLayoutAnchor): NSLayoutConstraint; constraintGreaterThanOrEqualToAnchorConstant(anchor: NSLayoutAnchor, c: number): NSLayoutConstraint; constraintLessThanOrEqualToAnchor(anchor: NSLayoutAnchor): NSLayoutConstraint; constraintLessThanOrEqualToAnchorConstant(anchor: NSLayoutAnchor, c: number): NSLayoutConstraint; } declare const enum NSLayoutAttribute { Left = 1, Right = 2, Top = 3, Bottom = 4, Leading = 5, Trailing = 6, Width = 7, Height = 8, CenterX = 9, CenterY = 10, LastBaseline = 11, Baseline = 11, FirstBaseline = 12, LeftMargin = 13, RightMargin = 14, TopMargin = 15, BottomMargin = 16, LeadingMargin = 17, TrailingMargin = 18, CenterXWithinMargins = 19, CenterYWithinMargins = 20, NotAnAttribute = 0 } declare class NSLayoutConstraint extends NSObject { static activateConstraints(constraints: NSArray): void; static alloc(): NSLayoutConstraint; // inherited from NSObject static constraintWithItemAttributeRelatedByToItemAttributeMultiplierConstant(view1: any, attr1: NSLayoutAttribute, relation: NSLayoutRelation, view2: any, attr2: NSLayoutAttribute, multiplier: number, c: number): NSLayoutConstraint; static constraintsWithVisualFormatOptionsMetricsViews(format: string, opts: NSLayoutFormatOptions, metrics: NSDictionary, views: NSDictionary): NSArray; static deactivateConstraints(constraints: NSArray): void; static new(): NSLayoutConstraint; // inherited from NSObject active: boolean; constant: number; readonly firstAnchor: NSLayoutAnchor; readonly firstAttribute: NSLayoutAttribute; readonly firstItem: any; identifier: string; readonly multiplier: number; priority: number; readonly relation: NSLayoutRelation; readonly secondAnchor: NSLayoutAnchor; readonly secondAttribute: NSLayoutAttribute; readonly secondItem: any; shouldBeArchived: boolean; } declare class NSLayoutDimension extends NSLayoutAnchor { static alloc(): NSLayoutDimension; // inherited from NSObject static new(): NSLayoutDimension; // inherited from NSObject constraintEqualToAnchorMultiplier(anchor: NSLayoutDimension, m: number): NSLayoutConstraint; constraintEqualToAnchorMultiplierConstant(anchor: NSLayoutDimension, m: number, c: number): NSLayoutConstraint; constraintEqualToConstant(c: number): NSLayoutConstraint; constraintGreaterThanOrEqualToAnchorMultiplier(anchor: NSLayoutDimension, m: number): NSLayoutConstraint; constraintGreaterThanOrEqualToAnchorMultiplierConstant(anchor: NSLayoutDimension, m: number, c: number): NSLayoutConstraint; constraintGreaterThanOrEqualToConstant(c: number): NSLayoutConstraint; constraintLessThanOrEqualToAnchorMultiplier(anchor: NSLayoutDimension, m: number): NSLayoutConstraint; constraintLessThanOrEqualToAnchorMultiplierConstant(anchor: NSLayoutDimension, m: number, c: number): NSLayoutConstraint; constraintLessThanOrEqualToConstant(c: number): NSLayoutConstraint; } declare const enum NSLayoutFormatOptions { AlignAllLeft = 2, AlignAllRight = 4, AlignAllTop = 8, AlignAllBottom = 16, AlignAllLeading = 32, AlignAllTrailing = 64, AlignAllCenterX = 512, AlignAllCenterY = 1024, AlignAllLastBaseline = 2048, AlignAllBaseline = 2048, AlignAllFirstBaseline = 4096, AlignmentMask = 65535, DirectionLeadingToTrailing = 0, DirectionLeftToRight = 65536, DirectionRightToLeft = 131072, DirectionMask = 196608 } declare class NSLayoutManager extends NSObject implements NSCoding { static alloc(): NSLayoutManager; // inherited from NSObject static new(): NSLayoutManager; // inherited from NSObject allowsNonContiguousLayout: boolean; delegate: NSLayoutManagerDelegate; readonly extraLineFragmentRect: CGRect; readonly extraLineFragmentTextContainer: NSTextContainer; readonly extraLineFragmentUsedRect: CGRect; readonly firstUnlaidCharacterIndex: number; readonly firstUnlaidGlyphIndex: number; readonly hasNonContiguousLayout: boolean; hyphenationFactor: number; readonly numberOfGlyphs: number; showsControlCharacters: boolean; showsInvisibleCharacters: boolean; readonly textContainers: NSArray; textStorage: NSTextStorage; usesFontLeading: boolean; constructor(o: { coder: NSCoder; }); // inherited from NSCoding CGGlyphAtIndex(glyphIndex: number): number; CGGlyphAtIndexIsValidIndex(glyphIndex: number, isValidIndex: interop.Pointer | interop.Reference): number; addTextContainer(container: NSTextContainer): void; attachmentSizeForGlyphAtIndex(glyphIndex: number): CGSize; boundingRectForGlyphRangeInTextContainer(glyphRange: NSRange, container: NSTextContainer): CGRect; characterIndexForGlyphAtIndex(glyphIndex: number): number; characterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints(point: CGPoint, container: NSTextContainer, partialFraction: interop.Pointer | interop.Reference): number; characterRangeForGlyphRangeActualGlyphRange(glyphRange: NSRange, actualGlyphRange: interop.Pointer | interop.Reference): NSRange; drawBackgroundForGlyphRangeAtPoint(glyphsToShow: NSRange, origin: CGPoint): void; drawGlyphsForGlyphRangeAtPoint(glyphsToShow: NSRange, origin: CGPoint): void; drawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange: NSRange, strikethroughVal: NSUnderlineStyle, baselineOffset: number, lineRect: CGRect, lineGlyphRange: NSRange, containerOrigin: CGPoint): void; drawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange: NSRange, underlineVal: NSUnderlineStyle, baselineOffset: number, lineRect: CGRect, lineGlyphRange: NSRange, containerOrigin: CGPoint): void; drawsOutsideLineFragmentForGlyphAtIndex(glyphIndex: number): boolean; encodeWithCoder(aCoder: NSCoder): void; ensureGlyphsForCharacterRange(charRange: NSRange): void; ensureGlyphsForGlyphRange(glyphRange: NSRange): void; ensureLayoutForBoundingRectInTextContainer(bounds: CGRect, container: NSTextContainer): void; ensureLayoutForCharacterRange(charRange: NSRange): void; ensureLayoutForGlyphRange(glyphRange: NSRange): void; ensureLayoutForTextContainer(container: NSTextContainer): void; enumerateEnclosingRectsForGlyphRangeWithinSelectedGlyphRangeInTextContainerUsingBlock(glyphRange: NSRange, selectedRange: NSRange, textContainer: NSTextContainer, block: (p1: CGRect, p2: interop.Pointer | interop.Reference) => void): void; enumerateLineFragmentsForGlyphRangeUsingBlock(glyphRange: NSRange, block: (p1: CGRect, p2: CGRect, p3: NSTextContainer, p4: NSRange, p5: interop.Pointer | interop.Reference) => void): void; fillBackgroundRectArrayCountForCharacterRangeColor(rectArray: interop.Pointer | interop.Reference, rectCount: number, charRange: NSRange, color: UIColor): void; fractionOfDistanceThroughGlyphForPointInTextContainer(point: CGPoint, container: NSTextContainer): number; getFirstUnlaidCharacterIndexGlyphIndex(charIndex: interop.Pointer | interop.Reference, glyphIndex: interop.Pointer | interop.Reference): void; getGlyphsInRangeGlyphsPropertiesCharacterIndexesBidiLevels(glyphRange: NSRange, glyphBuffer: interop.Pointer | interop.Reference, props: interop.Pointer | interop.Reference, charIndexBuffer: interop.Pointer | interop.Reference, bidiLevelBuffer: string): number; getLineFragmentInsertionPointsForCharacterAtIndexAlternatePositionsInDisplayOrderPositionsCharacterIndexes(charIndex: number, aFlag: boolean, dFlag: boolean, positions: interop.Pointer | interop.Reference, charIndexes: interop.Pointer | interop.Reference): number; glyphAtIndex(glyphIndex: number): number; glyphAtIndexIsValidIndex(glyphIndex: number, isValidIndex: interop.Pointer | interop.Reference): number; glyphIndexForCharacterAtIndex(charIndex: number): number; glyphIndexForPointInTextContainer(point: CGPoint, container: NSTextContainer): number; glyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph(point: CGPoint, container: NSTextContainer, partialFraction: interop.Pointer | interop.Reference): number; glyphRangeForBoundingRectInTextContainer(bounds: CGRect, container: NSTextContainer): NSRange; glyphRangeForBoundingRectWithoutAdditionalLayoutInTextContainer(bounds: CGRect, container: NSTextContainer): NSRange; glyphRangeForCharacterRangeActualCharacterRange(charRange: NSRange, actualCharRange: interop.Pointer | interop.Reference): NSRange; glyphRangeForTextContainer(container: NSTextContainer): NSRange; initWithCoder(aDecoder: NSCoder): this; insertTextContainerAtIndex(container: NSTextContainer, index: number): void; invalidateDisplayForCharacterRange(charRange: NSRange): void; invalidateDisplayForGlyphRange(glyphRange: NSRange): void; invalidateGlyphsForCharacterRangeChangeInLengthActualCharacterRange(charRange: NSRange, delta: number, actualCharRange: interop.Pointer | interop.Reference): void; invalidateLayoutForCharacterRangeActualCharacterRange(charRange: NSRange, actualCharRange: interop.Pointer | interop.Reference): void; isValidGlyphIndex(glyphIndex: number): boolean; lineFragmentRectForGlyphAtIndexEffectiveRange(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference): CGRect; lineFragmentRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference, flag: boolean): CGRect; lineFragmentUsedRectForGlyphAtIndexEffectiveRange(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference): CGRect; lineFragmentUsedRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference, flag: boolean): CGRect; locationForGlyphAtIndex(glyphIndex: number): CGPoint; notShownAttributeForGlyphAtIndex(glyphIndex: number): boolean; processEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange(textStorage: NSTextStorage, editMask: NSTextStorageEditActions, newCharRange: NSRange, delta: number, invalidatedCharRange: NSRange): void; propertyForGlyphAtIndex(glyphIndex: number): NSGlyphProperty; rangeOfNominallySpacedGlyphsContainingIndex(glyphIndex: number): NSRange; removeTextContainerAtIndex(index: number): void; setAttachmentSizeForGlyphRange(attachmentSize: CGSize, glyphRange: NSRange): void; setDrawsOutsideLineFragmentForGlyphAtIndex(flag: boolean, glyphIndex: number): void; setExtraLineFragmentRectUsedRectTextContainer(fragmentRect: CGRect, usedRect: CGRect, container: NSTextContainer): void; setGlyphsPropertiesCharacterIndexesFontForGlyphRange(glyphs: interop.Pointer | interop.Reference, props: interop.Pointer | interop.Reference, charIndexes: interop.Pointer | interop.Reference, aFont: UIFont, glyphRange: NSRange): void; setLineFragmentRectForGlyphRangeUsedRect(fragmentRect: CGRect, glyphRange: NSRange, usedRect: CGRect): void; setLocationForStartOfGlyphRange(location: CGPoint, glyphRange: NSRange): void; setNotShownAttributeForGlyphAtIndex(flag: boolean, glyphIndex: number): void; setTextContainerForGlyphRange(container: NSTextContainer, glyphRange: NSRange): void; showCGGlyphsPositionsCountFontMatrixAttributesInContext(glyphs: interop.Pointer | interop.Reference, positions: interop.Pointer | interop.Reference, glyphCount: number, font: UIFont, textMatrix: CGAffineTransform, attributes: NSDictionary, graphicsContext: any): void; strikethroughGlyphRangeStrikethroughTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange: NSRange, strikethroughVal: NSUnderlineStyle, lineRect: CGRect, lineGlyphRange: NSRange, containerOrigin: CGPoint): void; textContainerChangedGeometry(container: NSTextContainer): void; textContainerForGlyphAtIndexEffectiveRange(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference): NSTextContainer; textContainerForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex: number, effectiveGlyphRange: interop.Pointer | interop.Reference, flag: boolean): NSTextContainer; truncatedGlyphRangeInLineFragmentForGlyphAtIndex(glyphIndex: number): NSRange; underlineGlyphRangeUnderlineTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(glyphRange: NSRange, underlineVal: NSUnderlineStyle, lineRect: CGRect, lineGlyphRange: NSRange, containerOrigin: CGPoint): void; usedRectForTextContainer(container: NSTextContainer): CGRect; } interface NSLayoutManagerDelegate extends NSObjectProtocol { layoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex?(layoutManager: NSLayoutManager, glyphIndex: number, textContainer: NSTextContainer, proposedRect: CGRect, glyphPosition: CGPoint, charIndex: number): CGRect; layoutManagerDidCompleteLayoutForTextContainerAtEnd?(layoutManager: NSLayoutManager, textContainer: NSTextContainer, layoutFinishedFlag: boolean): void; layoutManagerDidInvalidateLayout?(sender: NSLayoutManager): void; layoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect?(layoutManager: NSLayoutManager, glyphIndex: number, rect: CGRect): number; layoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect?(layoutManager: NSLayoutManager, glyphIndex: number, rect: CGRect): number; layoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect?(layoutManager: NSLayoutManager, glyphIndex: number, rect: CGRect): number; layoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex?(layoutManager: NSLayoutManager, charIndex: number): boolean; layoutManagerShouldBreakLineByWordBeforeCharacterAtIndex?(layoutManager: NSLayoutManager, charIndex: number): boolean; layoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange?(layoutManager: NSLayoutManager, glyphs: interop.Pointer | interop.Reference, props: interop.Pointer | interop.Reference, charIndexes: interop.Pointer | interop.Reference, aFont: UIFont, glyphRange: NSRange): number; layoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange?(layoutManager: NSLayoutManager, lineFragmentRect: interop.Pointer | interop.Reference, lineFragmentUsedRect: interop.Pointer | interop.Reference, baselineOffset: interop.Pointer | interop.Reference, textContainer: NSTextContainer, glyphRange: NSRange): boolean; layoutManagerShouldUseActionForControlCharacterAtIndex?(layoutManager: NSLayoutManager, action: NSControlCharacterAction, charIndex: number): NSControlCharacterAction; layoutManagerTextContainerDidChangeGeometryFromSize?(layoutManager: NSLayoutManager, textContainer: NSTextContainer, oldSize: CGSize): void; } declare var NSLayoutManagerDelegate: { prototype: NSLayoutManagerDelegate; }; declare const enum NSLayoutRelation { LessThanOrEqual = -1, Equal = 0, GreaterThanOrEqual = 1 } declare class NSLayoutXAxisAnchor extends NSLayoutAnchor { static alloc(): NSLayoutXAxisAnchor; // inherited from NSObject static new(): NSLayoutXAxisAnchor; // inherited from NSObject } declare class NSLayoutYAxisAnchor extends NSLayoutAnchor { static alloc(): NSLayoutYAxisAnchor; // inherited from NSObject static new(): NSLayoutYAxisAnchor; // inherited from NSObject } declare var NSLigatureAttributeName: string; declare const enum NSLineBreakMode { ByWordWrapping = 0, ByCharWrapping = 1, ByClipping = 2, ByTruncatingHead = 3, ByTruncatingTail = 4, ByTruncatingMiddle = 5 } declare var NSLinkAttributeName: string; declare class NSMutableParagraphStyle extends NSParagraphStyle { static alloc(): NSMutableParagraphStyle; // inherited from NSObject static new(): NSMutableParagraphStyle; // inherited from NSObject alignment: NSTextAlignment; allowsDefaultTighteningForTruncation: boolean; baseWritingDirection: NSWritingDirection; defaultTabInterval: number; firstLineHeadIndent: number; headIndent: number; hyphenationFactor: number; lineBreakMode: NSLineBreakMode; lineHeightMultiple: number; lineSpacing: number; maximumLineHeight: number; minimumLineHeight: number; paragraphSpacing: number; paragraphSpacingBefore: number; tabStops: NSArray; tailIndent: number; addTabStop(anObject: NSTextTab): void; removeTabStop(anObject: NSTextTab): void; setParagraphStyle(obj: NSParagraphStyle): void; } declare var NSObliquenessAttributeName: string; declare var NSPaperMarginDocumentAttribute: string; declare var NSPaperSizeDocumentAttribute: string; declare class NSParagraphStyle extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding { static alloc(): NSParagraphStyle; // inherited from NSObject static defaultWritingDirectionForLanguage(languageName: string): NSWritingDirection; static new(): NSParagraphStyle; // inherited from NSObject readonly alignment: NSTextAlignment; readonly allowsDefaultTighteningForTruncation: boolean; readonly baseWritingDirection: NSWritingDirection; readonly defaultTabInterval: number; readonly firstLineHeadIndent: number; readonly headIndent: number; readonly hyphenationFactor: number; readonly lineBreakMode: NSLineBreakMode; readonly lineHeightMultiple: number; readonly lineSpacing: number; readonly maximumLineHeight: number; readonly minimumLineHeight: number; readonly paragraphSpacing: number; readonly paragraphSpacingBefore: number; readonly tabStops: NSArray; readonly tailIndent: number; static readonly defaultParagraphStyle: NSParagraphStyle; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } declare var NSParagraphStyleAttributeName: string; declare var NSPlainTextDocumentType: string; declare var NSRTFDTextDocumentType: string; declare var NSRTFTextDocumentType: string; declare var NSReadOnlyDocumentAttribute: string; declare class NSShadow extends NSObject implements NSCoding, NSCopying { static alloc(): NSShadow; // inherited from NSObject static new(): NSShadow; // inherited from NSObject shadowBlurRadius: number; shadowColor: any; shadowOffset: CGSize; constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; } declare var NSShadowAttributeName: string; declare var NSStrikethroughColorAttributeName: string; declare var NSStrikethroughStyleAttributeName: string; declare class NSStringDrawingContext extends NSObject { static alloc(): NSStringDrawingContext; // inherited from NSObject static new(): NSStringDrawingContext; // inherited from NSObject readonly actualScaleFactor: number; readonly actualTrackingAdjustment: number; minimumScaleFactor: number; minimumTrackingAdjustment: number; readonly totalBounds: CGRect; } declare const enum NSStringDrawingOptions { UsesLineFragmentOrigin = 1, UsesFontLeading = 2, UsesDeviceMetrics = 8, TruncatesLastVisibleLine = 32 } declare function NSStringFromCGAffineTransform(transform: CGAffineTransform): string; declare function NSStringFromCGPoint(point: CGPoint): string; declare function NSStringFromCGRect(rect: CGRect): string; declare function NSStringFromCGSize(size: CGSize): string; declare function NSStringFromCGVector(vector: CGVector): string; declare function NSStringFromUIEdgeInsets(insets: UIEdgeInsets): string; declare function NSStringFromUIOffset(offset: UIOffset): string; declare var NSStrokeColorAttributeName: string; declare var NSStrokeWidthAttributeName: string; declare var NSTabColumnTerminatorsAttributeName: string; declare const enum NSTextAlignment { Left = 0, Center = 1, Right = 2, Justified = 3, Natural = 4 } declare function NSTextAlignmentFromCTTextAlignment(ctTextAlignment: CTTextAlignment): NSTextAlignment; declare function NSTextAlignmentToCTTextAlignment(nsTextAlignment: NSTextAlignment): CTTextAlignment; declare class NSTextAttachment extends NSObject implements NSCoding, NSTextAttachmentContainer { static alloc(): NSTextAttachment; // inherited from NSObject static new(): NSTextAttachment; // inherited from NSObject bounds: CGRect; contents: NSData; fileType: string; fileWrapper: NSFileWrapper; image: UIImage; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { data: NSData; ofType: string; }); attachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer: NSTextContainer, lineFrag: CGRect, position: CGPoint, charIndex: number): CGRect; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; encodeWithCoder(aCoder: NSCoder): void; imageForBoundsTextContainerCharacterIndex(imageBounds: CGRect, textContainer: NSTextContainer, charIndex: number): UIImage; initWithCoder(aDecoder: NSCoder): this; initWithDataOfType(contentData: NSData, uti: string): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } interface NSTextAttachmentContainer extends NSObjectProtocol { attachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer: NSTextContainer, lineFrag: CGRect, position: CGPoint, charIndex: number): CGRect; imageForBoundsTextContainerCharacterIndex(imageBounds: CGRect, textContainer: NSTextContainer, charIndex: number): UIImage; } declare var NSTextAttachmentContainer: { prototype: NSTextAttachmentContainer; }; declare class NSTextContainer extends NSObject implements NSCoding, NSTextLayoutOrientationProvider { static alloc(): NSTextContainer; // inherited from NSObject static new(): NSTextContainer; // inherited from NSObject exclusionPaths: NSArray; heightTracksTextView: boolean; layoutManager: NSLayoutManager; lineBreakMode: NSLineBreakMode; lineFragmentPadding: number; maximumNumberOfLines: number; readonly simpleRectangularTextContainer: boolean; size: CGSize; widthTracksTextView: boolean; readonly layoutOrientation: NSTextLayoutOrientation; // inherited from NSTextLayoutOrientationProvider constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { size: CGSize; }); encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithSize(size: CGSize): this; lineFragmentRectForProposedRectAtIndexWritingDirectionRemainingRect(proposedRect: CGRect, characterIndex: number, baseWritingDirection: NSWritingDirection, remainingRect: interop.Pointer | interop.Reference): CGRect; replaceLayoutManager(newLayoutManager: NSLayoutManager): void; } declare var NSTextEffectAttributeName: string; declare var NSTextEffectLetterpressStyle: string; declare const enum NSTextLayoutOrientation { Horizontal = 0, Vertical = 1 } interface NSTextLayoutOrientationProvider { layoutOrientation: NSTextLayoutOrientation; } declare var NSTextLayoutOrientationProvider: { prototype: NSTextLayoutOrientationProvider; }; declare var NSTextLayoutSectionOrientation: string; declare var NSTextLayoutSectionRange: string; declare var NSTextLayoutSectionsAttribute: string; declare class NSTextStorage extends NSMutableAttributedString { static alloc(): NSTextStorage; // inherited from NSObject static new(): NSTextStorage; // inherited from NSObject readonly changeInLength: number; delegate: NSTextStorageDelegate; readonly editedMask: NSTextStorageEditActions; readonly editedRange: NSRange; readonly fixesAttributesLazily: boolean; readonly layoutManagers: NSArray; addLayoutManager(aLayoutManager: NSLayoutManager): void; editedRangeChangeInLength(editedMask: NSTextStorageEditActions, editedRange: NSRange, delta: number): void; ensureAttributesAreFixedInRange(range: NSRange): void; invalidateAttributesInRange(range: NSRange): void; processEditing(): void; removeLayoutManager(aLayoutManager: NSLayoutManager): void; } interface NSTextStorageDelegate extends NSObjectProtocol { textStorageDidProcessEditingRangeChangeInLength?(textStorage: NSTextStorage, editedMask: NSTextStorageEditActions, editedRange: NSRange, delta: number): void; textStorageWillProcessEditingRangeChangeInLength?(textStorage: NSTextStorage, editedMask: NSTextStorageEditActions, editedRange: NSRange, delta: number): void; } declare var NSTextStorageDelegate: { prototype: NSTextStorageDelegate; }; declare var NSTextStorageDidProcessEditingNotification: string; declare const enum NSTextStorageEditActions { EditedAttributes = 1, EditedCharacters = 2 } declare var NSTextStorageWillProcessEditingNotification: string; declare class NSTextTab extends NSObject implements NSCoding, NSCopying, NSSecureCoding { static alloc(): NSTextTab; // inherited from NSObject static columnTerminatorsForLocale(aLocale: NSLocale): NSCharacterSet; static new(): NSTextTab; // inherited from NSObject readonly alignment: NSTextAlignment; readonly location: number; readonly options: NSDictionary; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { textAlignment: NSTextAlignment; location: number; options: NSDictionary; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithTextAlignmentLocationOptions(alignment: NSTextAlignment, loc: number, options: NSDictionary): this; } declare const enum NSTextWritingDirection { Embedding = 0, Override = 2 } declare var NSUnderlineColorAttributeName: string; declare const enum NSUnderlineStyle { StyleNone = 0, StyleSingle = 1, StyleThick = 2, StyleDouble = 9, PatternSolid = 0, PatternDot = 256, PatternDash = 512, PatternDashDot = 768, PatternDashDotDot = 1024, ByWord = 32768 } declare var NSUnderlineStyleAttributeName: string; declare var NSUserActivityDocumentURLKey: string; declare var NSVerticalGlyphFormAttributeName: string; declare var NSViewModeDocumentAttribute: string; declare var NSViewSizeDocumentAttribute: string; declare var NSViewZoomDocumentAttribute: string; declare const enum NSWritingDirection { Natural = -1, LeftToRight = 0, RightToLeft = 1 } declare var NSWritingDirectionAttributeName: string; declare const enum NSWritingDirectionFormatType { Embedding = 0, Override = 2 } declare class UIAcceleration extends NSObject { static alloc(): UIAcceleration; // inherited from NSObject static new(): UIAcceleration; // inherited from NSObject readonly timestamp: number; readonly x: number; readonly y: number; readonly z: number; } declare class UIAccelerometer extends NSObject { static alloc(): UIAccelerometer; // inherited from NSObject static new(): UIAccelerometer; // inherited from NSObject static sharedAccelerometer(): UIAccelerometer; delegate: UIAccelerometerDelegate; updateInterval: number; } interface UIAccelerometerDelegate extends NSObjectProtocol { accelerometerDidAccelerate?(accelerometer: UIAccelerometer, acceleration: UIAcceleration): void; } declare var UIAccelerometerDelegate: { prototype: UIAccelerometerDelegate; }; declare var UIAccessibilityAnnouncementDidFinishNotification: string; declare var UIAccessibilityAnnouncementKeyStringValue: string; declare var UIAccessibilityAnnouncementKeyWasSuccessful: string; declare var UIAccessibilityAnnouncementNotification: number; declare var UIAccessibilityAssistiveTechnologyKey: string; declare var UIAccessibilityAssistiveTouchStatusDidChangeNotification: string; declare var UIAccessibilityBoldTextStatusDidChangeNotification: string; declare var UIAccessibilityClosedCaptioningStatusDidChangeNotification: string; declare function UIAccessibilityConvertFrameToScreenCoordinates(rect: CGRect, view: UIView): CGRect; declare function UIAccessibilityConvertPathToScreenCoordinates(path: UIBezierPath, view: UIView): UIBezierPath; declare class UIAccessibilityCustomAction extends NSObject { static alloc(): UIAccessibilityCustomAction; // inherited from NSObject static new(): UIAccessibilityCustomAction; // inherited from NSObject name: string; selector: string; target: any; constructor(o: { name: string; target: any; selector: string; }); initWithNameTargetSelector(name: string, target: any, selector: string): this; } declare class UIAccessibilityCustomRotor extends NSObject { static alloc(): UIAccessibilityCustomRotor; // inherited from NSObject static new(): UIAccessibilityCustomRotor; // inherited from NSObject itemSearchBlock: (p1: UIAccessibilityCustomRotorSearchPredicate) => UIAccessibilityCustomRotorItemResult; name: string; constructor(o: { name: string; itemSearchBlock: (p1: UIAccessibilityCustomRotorSearchPredicate) => UIAccessibilityCustomRotorItemResult; }); initWithNameItemSearchBlock(name: string, itemSearchBlock: (p1: UIAccessibilityCustomRotorSearchPredicate) => UIAccessibilityCustomRotorItemResult): this; } declare const enum UIAccessibilityCustomRotorDirection { Previous = 0, Next = 1 } declare class UIAccessibilityCustomRotorItemResult extends NSObject { static alloc(): UIAccessibilityCustomRotorItemResult; // inherited from NSObject static new(): UIAccessibilityCustomRotorItemResult; // inherited from NSObject targetElement: NSObjectProtocol; targetRange: UITextRange; constructor(o: { targetElement: NSObjectProtocol; targetRange: UITextRange; }); initWithTargetElementTargetRange(targetElement: NSObjectProtocol, targetRange: UITextRange): this; } declare class UIAccessibilityCustomRotorSearchPredicate extends NSObject { static alloc(): UIAccessibilityCustomRotorSearchPredicate; // inherited from NSObject static new(): UIAccessibilityCustomRotorSearchPredicate; // inherited from NSObject currentItem: UIAccessibilityCustomRotorItemResult; searchDirection: UIAccessibilityCustomRotorDirection; } declare function UIAccessibilityDarkerSystemColorsEnabled(): boolean; declare var UIAccessibilityDarkerSystemColorsStatusDidChangeNotification: string; declare class UIAccessibilityElement extends NSObject implements UIAccessibilityIdentification { static alloc(): UIAccessibilityElement; // inherited from NSObject static new(): UIAccessibilityElement; // inherited from NSObject accessibilityContainer: any; accessibilityFrameInContainerSpace: CGRect; accessibilityIdentifier: string; // inherited from UIAccessibilityIdentification readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { accessibilityContainer: any; }); class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; initWithAccessibilityContainer(container: any): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare var UIAccessibilityElementFocusedNotification: string; declare function UIAccessibilityFocusedElement(assistiveTechnologyIdentifier: string): any; declare var UIAccessibilityFocusedElementKey: string; declare var UIAccessibilityGrayscaleStatusDidChangeNotification: string; declare var UIAccessibilityGuidedAccessStatusDidChangeNotification: string; declare const enum UIAccessibilityHearingDeviceEar { None = 0, Left = 2, Right = 4, Both = 6 } declare function UIAccessibilityHearingDevicePairedEar(): UIAccessibilityHearingDeviceEar; declare var UIAccessibilityHearingDevicePairedEarDidChangeNotification: string; interface UIAccessibilityIdentification extends NSObjectProtocol { accessibilityIdentifier: string; } declare var UIAccessibilityIdentification: { prototype: UIAccessibilityIdentification; }; declare var UIAccessibilityInvertColorsStatusDidChangeNotification: string; declare function UIAccessibilityIsAssistiveTouchRunning(): boolean; declare function UIAccessibilityIsBoldTextEnabled(): boolean; declare function UIAccessibilityIsClosedCaptioningEnabled(): boolean; declare function UIAccessibilityIsGrayscaleEnabled(): boolean; declare function UIAccessibilityIsGuidedAccessEnabled(): boolean; declare function UIAccessibilityIsInvertColorsEnabled(): boolean; declare function UIAccessibilityIsMonoAudioEnabled(): boolean; declare function UIAccessibilityIsReduceMotionEnabled(): boolean; declare function UIAccessibilityIsReduceTransparencyEnabled(): boolean; declare function UIAccessibilityIsShakeToUndoEnabled(): boolean; declare function UIAccessibilityIsSpeakScreenEnabled(): boolean; declare function UIAccessibilityIsSpeakSelectionEnabled(): boolean; declare function UIAccessibilityIsSwitchControlRunning(): boolean; declare function UIAccessibilityIsVoiceOverRunning(): boolean; declare var UIAccessibilityLayoutChangedNotification: number; declare var UIAccessibilityMonoAudioStatusDidChangeNotification: string; declare const enum UIAccessibilityNavigationStyle { Automatic = 0, Separate = 1, Combined = 2 } declare var UIAccessibilityNotificationSwitchControlIdentifier: string; declare var UIAccessibilityNotificationVoiceOverIdentifier: string; declare var UIAccessibilityPageScrolledNotification: number; declare var UIAccessibilityPauseAssistiveTechnologyNotification: number; declare function UIAccessibilityPostNotification(notification: number, argument: any): void; interface UIAccessibilityReadingContent { accessibilityContentForLineNumber(lineNumber: number): string; accessibilityFrameForLineNumber(lineNumber: number): CGRect; accessibilityLineNumberForPoint(point: CGPoint): number; accessibilityPageContent(): string; } declare var UIAccessibilityReadingContent: { prototype: UIAccessibilityReadingContent; }; declare var UIAccessibilityReduceMotionStatusDidChangeNotification: string; declare var UIAccessibilityReduceTransparencyStatusDidChangeNotification: string; declare function UIAccessibilityRegisterGestureConflictWithZoom(): void; declare function UIAccessibilityRequestGuidedAccessSession(enable: boolean, completionHandler: (p1: boolean) => void): void; declare var UIAccessibilityResumeAssistiveTechnologyNotification: number; declare var UIAccessibilityScreenChangedNotification: number; declare const enum UIAccessibilityScrollDirection { Right = 1, Left = 2, Up = 3, Down = 4, Next = 5, Previous = 6 } declare var UIAccessibilityShakeToUndoDidChangeNotification: string; declare var UIAccessibilitySpeakScreenStatusDidChangeNotification: string; declare var UIAccessibilitySpeakSelectionStatusDidChangeNotification: string; declare var UIAccessibilitySpeechAttributeLanguage: string; declare var UIAccessibilitySpeechAttributePitch: string; declare var UIAccessibilitySpeechAttributePunctuation: string; declare var UIAccessibilitySwitchControlStatusDidChangeNotification: string; declare var UIAccessibilityTraitAdjustable: number; declare var UIAccessibilityTraitAllowsDirectInteraction: number; declare var UIAccessibilityTraitButton: number; declare var UIAccessibilityTraitCausesPageTurn: number; declare var UIAccessibilityTraitHeader: number; declare var UIAccessibilityTraitImage: number; declare var UIAccessibilityTraitKeyboardKey: number; declare var UIAccessibilityTraitLink: number; declare var UIAccessibilityTraitNone: number; declare var UIAccessibilityTraitNotEnabled: number; declare var UIAccessibilityTraitPlaysSound: number; declare var UIAccessibilityTraitSearchField: number; declare var UIAccessibilityTraitSelected: number; declare var UIAccessibilityTraitStartsMediaSession: number; declare var UIAccessibilityTraitStaticText: number; declare var UIAccessibilityTraitSummaryElement: number; declare var UIAccessibilityTraitTabBar: number; declare var UIAccessibilityTraitUpdatesFrequently: number; declare var UIAccessibilityUnfocusedElementKey: string; declare var UIAccessibilityVoiceOverStatusChanged: string; declare function UIAccessibilityZoomFocusChanged(type: UIAccessibilityZoomType, frame: CGRect, view: UIView): void; declare const enum UIAccessibilityZoomType { InsertionPoint = 0 } declare class UIActionSheet extends UIView { static alloc(): UIActionSheet; // inherited from NSObject static appearance(): UIActionSheet; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIActionSheet; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIActionSheet; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIActionSheet; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIActionSheet; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIActionSheet; // inherited from UIAppearance static new(): UIActionSheet; // inherited from NSObject actionSheetStyle: UIActionSheetStyle; cancelButtonIndex: number; delegate: UIActionSheetDelegate; destructiveButtonIndex: number; readonly firstOtherButtonIndex: number; readonly numberOfButtons: number; title: string; readonly visible: boolean; constructor(o: { title: string; delegate: UIActionSheetDelegate; cancelButtonTitle: string; destructiveButtonTitle: string; otherButtonTitles: string; }); addButtonWithTitle(title: string): number; buttonTitleAtIndex(buttonIndex: number): string; dismissWithClickedButtonIndexAnimated(buttonIndex: number, animated: boolean): void; initWithTitleDelegateCancelButtonTitleDestructiveButtonTitleOtherButtonTitles(title: string, delegate: UIActionSheetDelegate, cancelButtonTitle: string, destructiveButtonTitle: string, otherButtonTitles: string): this; showFromBarButtonItemAnimated(item: UIBarButtonItem, animated: boolean): void; showFromRectInViewAnimated(rect: CGRect, view: UIView, animated: boolean): void; showFromTabBar(view: UITabBar): void; showFromToolbar(view: UIToolbar): void; showInView(view: UIView): void; } interface UIActionSheetDelegate extends NSObjectProtocol { actionSheetCancel?(actionSheet: UIActionSheet): void; actionSheetClickedButtonAtIndex?(actionSheet: UIActionSheet, buttonIndex: number): void; actionSheetDidDismissWithButtonIndex?(actionSheet: UIActionSheet, buttonIndex: number): void; actionSheetWillDismissWithButtonIndex?(actionSheet: UIActionSheet, buttonIndex: number): void; didPresentActionSheet?(actionSheet: UIActionSheet): void; willPresentActionSheet?(actionSheet: UIActionSheet): void; } declare var UIActionSheetDelegate: { prototype: UIActionSheetDelegate; }; declare const enum UIActionSheetStyle { Automatic = -1, Default = 0, BlackTranslucent = 2, BlackOpaque = 1 } declare class UIActivity extends NSObject { static alloc(): UIActivity; // inherited from NSObject static new(): UIActivity; // inherited from NSObject readonly activityImage: UIImage; readonly activityTitle: string; readonly activityType: string; readonly activityViewController: UIViewController; static readonly activityCategory: UIActivityCategory; activityDidFinish(completed: boolean): void; canPerformWithActivityItems(activityItems: NSArray): boolean; performActivity(): void; prepareWithActivityItems(activityItems: NSArray): void; } declare const enum UIActivityCategory { Action = 0, Share = 1 } declare class UIActivityIndicatorView extends UIView implements NSCoding { static alloc(): UIActivityIndicatorView; // inherited from NSObject static appearance(): UIActivityIndicatorView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIActivityIndicatorView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIActivityIndicatorView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIActivityIndicatorView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIActivityIndicatorView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIActivityIndicatorView; // inherited from UIAppearance static new(): UIActivityIndicatorView; // inherited from NSObject activityIndicatorViewStyle: UIActivityIndicatorViewStyle; readonly animating: boolean; color: UIColor; hidesWhenStopped: boolean; constructor(o: { activityIndicatorStyle: UIActivityIndicatorViewStyle; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding encodeWithCoder(aCoder: NSCoder): void; initWithActivityIndicatorStyle(style: UIActivityIndicatorViewStyle): this; initWithCoder(aDecoder: NSCoder): this; startAnimating(): void; stopAnimating(): void; } declare const enum UIActivityIndicatorViewStyle { WhiteLarge = 0, White = 1, Gray = 2 } declare class UIActivityItemProvider extends NSOperation implements UIActivityItemSource { static alloc(): UIActivityItemProvider; // inherited from NSObject static new(): UIActivityItemProvider; // inherited from NSObject readonly activityType: string; readonly item: any; readonly placeholderItem: any; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { placeholderItem: any; }); activityViewControllerDataTypeIdentifierForActivityType(activityViewController: UIActivityViewController, activityType: string): string; activityViewControllerItemForActivityType(activityViewController: UIActivityViewController, activityType: string): any; activityViewControllerPlaceholderItem(activityViewController: UIActivityViewController): any; activityViewControllerSubjectForActivityType(activityViewController: UIActivityViewController, activityType: string): string; activityViewControllerThumbnailImageForActivityTypeSuggestedSize(activityViewController: UIActivityViewController, activityType: string, size: CGSize): UIImage; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; initWithPlaceholderItem(placeholderItem: any): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } interface UIActivityItemSource extends NSObjectProtocol { activityViewControllerDataTypeIdentifierForActivityType?(activityViewController: UIActivityViewController, activityType: string): string; activityViewControllerItemForActivityType(activityViewController: UIActivityViewController, activityType: string): any; activityViewControllerPlaceholderItem(activityViewController: UIActivityViewController): any; activityViewControllerSubjectForActivityType?(activityViewController: UIActivityViewController, activityType: string): string; activityViewControllerThumbnailImageForActivityTypeSuggestedSize?(activityViewController: UIActivityViewController, activityType: string, size: CGSize): UIImage; } declare var UIActivityItemSource: { prototype: UIActivityItemSource; }; declare var UIActivityTypeAddToReadingList: string; declare var UIActivityTypeAirDrop: string; declare var UIActivityTypeAssignToContact: string; declare var UIActivityTypeCopyToPasteboard: string; declare var UIActivityTypeMail: string; declare var UIActivityTypeMessage: string; declare var UIActivityTypeOpenInIBooks: string; declare var UIActivityTypePostToFacebook: string; declare var UIActivityTypePostToFlickr: string; declare var UIActivityTypePostToTencentWeibo: string; declare var UIActivityTypePostToTwitter: string; declare var UIActivityTypePostToVimeo: string; declare var UIActivityTypePostToWeibo: string; declare var UIActivityTypePrint: string; declare var UIActivityTypeSaveToCameraRoll: string; declare class UIActivityViewController extends UIViewController { static alloc(): UIActivityViewController; // inherited from NSObject static new(): UIActivityViewController; // inherited from NSObject completionHandler: (p1: string, p2: boolean) => void; completionWithItemsHandler: (p1: string, p2: boolean, p3: NSArray, p4: NSError) => void; excludedActivityTypes: NSArray; constructor(o: { activityItems: NSArray; applicationActivities: NSArray; }); initWithActivityItemsApplicationActivities(activityItems: NSArray, applicationActivities: NSArray): this; } interface UIAdaptivePresentationControllerDelegate extends NSObjectProtocol { adaptivePresentationStyleForPresentationController?(controller: UIPresentationController): UIModalPresentationStyle; adaptivePresentationStyleForPresentationControllerTraitCollection?(controller: UIPresentationController, traitCollection: UITraitCollection): UIModalPresentationStyle; presentationControllerViewControllerForAdaptivePresentationStyle?(controller: UIPresentationController, style: UIModalPresentationStyle): UIViewController; presentationControllerWillPresentWithAdaptiveStyleTransitionCoordinator?(presentationController: UIPresentationController, style: UIModalPresentationStyle, transitionCoordinator: UIViewControllerTransitionCoordinator): void; } declare var UIAdaptivePresentationControllerDelegate: { prototype: UIAdaptivePresentationControllerDelegate; }; declare class UIAlertAction extends NSObject implements NSCopying { static actionWithTitleStyleHandler(title: string, style: UIAlertActionStyle, handler: (p1: UIAlertAction) => void): UIAlertAction; static alloc(): UIAlertAction; // inherited from NSObject static new(): UIAlertAction; // inherited from NSObject enabled: boolean; readonly style: UIAlertActionStyle; readonly title: string; copyWithZone(zone: interop.Pointer | interop.Reference): any; } declare const enum UIAlertActionStyle { Default = 0, Cancel = 1, Destructive = 2 } declare class UIAlertController extends UIViewController { static alertControllerWithTitleMessagePreferredStyle(title: string, message: string, preferredStyle: UIAlertControllerStyle): UIAlertController; static alloc(): UIAlertController; // inherited from NSObject static new(): UIAlertController; // inherited from NSObject readonly actions: NSArray; message: string; preferredAction: UIAlertAction; readonly preferredStyle: UIAlertControllerStyle; readonly textFields: NSArray; addAction(action: UIAlertAction): void; addTextFieldWithConfigurationHandler(configurationHandler: (p1: UITextField) => void): void; } declare const enum UIAlertControllerStyle { ActionSheet = 0, Alert = 1 } declare class UIAlertView extends UIView { static alloc(): UIAlertView; // inherited from NSObject static appearance(): UIAlertView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIAlertView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIAlertView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIAlertView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIAlertView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIAlertView; // inherited from UIAppearance static new(): UIAlertView; // inherited from NSObject alertViewStyle: UIAlertViewStyle; cancelButtonIndex: number; delegate: any; readonly firstOtherButtonIndex: number; message: string; readonly numberOfButtons: number; title: string; readonly visible: boolean; constructor(o: { title: string; message: string; delegate: any; cancelButtonTitle: string; otherButtonTitles: string; }); addButtonWithTitle(title: string): number; buttonTitleAtIndex(buttonIndex: number): string; dismissWithClickedButtonIndexAnimated(buttonIndex: number, animated: boolean): void; initWithTitleMessageDelegateCancelButtonTitleOtherButtonTitles(title: string, message: string, delegate: any, cancelButtonTitle: string, otherButtonTitles: string): this; show(): void; textFieldAtIndex(textFieldIndex: number): UITextField; } interface UIAlertViewDelegate extends NSObjectProtocol { alertViewCancel?(alertView: UIAlertView): void; alertViewClickedButtonAtIndex?(alertView: UIAlertView, buttonIndex: number): void; alertViewDidDismissWithButtonIndex?(alertView: UIAlertView, buttonIndex: number): void; alertViewShouldEnableFirstOtherButton?(alertView: UIAlertView): boolean; alertViewWillDismissWithButtonIndex?(alertView: UIAlertView, buttonIndex: number): void; didPresentAlertView?(alertView: UIAlertView): void; willPresentAlertView?(alertView: UIAlertView): void; } declare var UIAlertViewDelegate: { prototype: UIAlertViewDelegate; }; declare const enum UIAlertViewStyle { Default = 0, SecureTextInput = 1, PlainTextInput = 2, LoginAndPasswordInput = 3 } interface UIAppearance extends NSObjectProtocol { } declare var UIAppearance: { prototype: UIAppearance; appearance(): UIAppearance; appearanceForTraitCollection(trait: UITraitCollection): UIAppearance; appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIAppearance; appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIAppearance; appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIAppearance; appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIAppearance; }; interface UIAppearanceContainer extends NSObjectProtocol { } declare var UIAppearanceContainer: { prototype: UIAppearanceContainer; }; declare class UIApplication extends UIResponder { static alloc(): UIApplication; // inherited from NSObject static new(): UIApplication; // inherited from NSObject static registerObjectForStateRestorationRestorationIdentifier(object: UIStateRestoring, restorationIdentifier: string): void; applicationIconBadgeNumber: number; readonly applicationState: UIApplicationState; applicationSupportsShakeToEdit: boolean; readonly backgroundRefreshStatus: UIBackgroundRefreshStatus; readonly backgroundTimeRemaining: number; readonly currentUserNotificationSettings: UIUserNotificationSettings; delegate: UIApplicationDelegate; idleTimerDisabled: boolean; readonly ignoringInteractionEvents: boolean; readonly keyWindow: UIWindow; networkActivityIndicatorVisible: boolean; readonly preferredContentSizeCategory: string; readonly protectedDataAvailable: boolean; proximitySensingEnabled: boolean; readonly registeredForRemoteNotifications: boolean; scheduledLocalNotifications: NSArray; shortcutItems: NSArray; readonly statusBarFrame: CGRect; readonly statusBarHidden: boolean; readonly statusBarOrientation: UIInterfaceOrientation; readonly statusBarOrientationAnimationDuration: number; readonly statusBarStyle: UIStatusBarStyle; readonly userInterfaceLayoutDirection: UIUserInterfaceLayoutDirection; readonly windows: NSArray; static readonly sharedApplication: UIApplication; beginBackgroundTaskWithExpirationHandler(handler: () => void): number; beginBackgroundTaskWithNameExpirationHandler(taskName: string, handler: () => void): number; beginIgnoringInteractionEvents(): void; beginReceivingRemoteControlEvents(): void; canOpenURL(url: NSURL): boolean; cancelAllLocalNotifications(): void; cancelLocalNotification(notification: UILocalNotification): void; clearKeepAliveTimeout(): void; completeStateRestoration(): void; enabledRemoteNotificationTypes(): UIRemoteNotificationType; endBackgroundTask(identifier: number): void; endIgnoringInteractionEvents(): void; endReceivingRemoteControlEvents(): void; extendStateRestoration(): void; ignoreSnapshotOnNextApplicationLaunch(): void; openURL(url: NSURL): boolean; openURLOptionsCompletionHandler(url: NSURL, options: NSDictionary, completion: (p1: boolean) => void): void; presentLocalNotificationNow(notification: UILocalNotification): void; registerForRemoteNotificationTypes(types: UIRemoteNotificationType): void; registerForRemoteNotifications(): void; registerUserNotificationSettings(notificationSettings: UIUserNotificationSettings): void; scheduleLocalNotification(notification: UILocalNotification): void; sendActionToFromForEvent(action: string, target: any, sender: any, event: UIEvent): boolean; sendEvent(event: UIEvent): void; setKeepAliveTimeoutHandler(timeout: number, keepAliveHandler: () => void): boolean; setMinimumBackgroundFetchInterval(minimumBackgroundFetchInterval: number): void; setNewsstandIconImage(image: UIImage): void; setStatusBarHiddenAnimated(hidden: boolean, animated: boolean): void; setStatusBarHiddenWithAnimation(hidden: boolean, animation: UIStatusBarAnimation): void; setStatusBarOrientationAnimated(interfaceOrientation: UIInterfaceOrientation, animated: boolean): void; setStatusBarStyleAnimated(statusBarStyle: UIStatusBarStyle, animated: boolean): void; supportedInterfaceOrientationsForWindow(window: UIWindow): UIInterfaceOrientationMask; unregisterForRemoteNotifications(): void; } declare var UIApplicationBackgroundFetchIntervalMinimum: number; declare var UIApplicationBackgroundFetchIntervalNever: number; declare var UIApplicationBackgroundRefreshStatusDidChangeNotification: string; interface UIApplicationDelegate extends NSObjectProtocol { window?: UIWindow; applicationContinueUserActivityRestorationHandler?(application: UIApplication, userActivity: NSUserActivity, restorationHandler: (p1: NSArray) => void): boolean; applicationDidBecomeActive?(application: UIApplication): void; applicationDidChangeStatusBarFrame?(application: UIApplication, oldStatusBarFrame: CGRect): void; applicationDidChangeStatusBarOrientation?(application: UIApplication, oldStatusBarOrientation: UIInterfaceOrientation): void; applicationDidDecodeRestorableStateWithCoder?(application: UIApplication, coder: NSCoder): void; applicationDidEnterBackground?(application: UIApplication): void; applicationDidFailToContinueUserActivityWithTypeError?(application: UIApplication, userActivityType: string, error: NSError): void; applicationDidFailToRegisterForRemoteNotificationsWithError?(application: UIApplication, error: NSError): void; applicationDidFinishLaunching?(application: UIApplication): void; applicationDidFinishLaunchingWithOptions?(application: UIApplication, launchOptions: NSDictionary): boolean; applicationDidReceiveLocalNotification?(application: UIApplication, notification: UILocalNotification): void; applicationDidReceiveMemoryWarning?(application: UIApplication): void; applicationDidReceiveRemoteNotification?(application: UIApplication, userInfo: NSDictionary): void; applicationDidReceiveRemoteNotificationFetchCompletionHandler?(application: UIApplication, userInfo: NSDictionary, completionHandler: (p1: UIBackgroundFetchResult) => void): void; applicationDidRegisterForRemoteNotificationsWithDeviceToken?(application: UIApplication, deviceToken: NSData): void; applicationDidRegisterUserNotificationSettings?(application: UIApplication, notificationSettings: UIUserNotificationSettings): void; applicationDidUpdateUserActivity?(application: UIApplication, userActivity: NSUserActivity): void; applicationHandleActionWithIdentifierForLocalNotificationCompletionHandler?(application: UIApplication, identifier: string, notification: UILocalNotification, completionHandler: () => void): void; applicationHandleActionWithIdentifierForLocalNotificationWithResponseInfoCompletionHandler?(application: UIApplication, identifier: string, notification: UILocalNotification, responseInfo: NSDictionary, completionHandler: () => void): void; applicationHandleActionWithIdentifierForRemoteNotificationCompletionHandler?(application: UIApplication, identifier: string, userInfo: NSDictionary, completionHandler: () => void): void; applicationHandleActionWithIdentifierForRemoteNotificationWithResponseInfoCompletionHandler?(application: UIApplication, identifier: string, userInfo: NSDictionary, responseInfo: NSDictionary, completionHandler: () => void): void; applicationHandleEventsForBackgroundURLSessionCompletionHandler?(application: UIApplication, identifier: string, completionHandler: () => void): void; applicationHandleOpenURL?(application: UIApplication, url: NSURL): boolean; applicationHandleWatchKitExtensionRequestReply?(application: UIApplication, userInfo: NSDictionary, reply: (p1: NSDictionary) => void): void; applicationOpenURLOptions?(app: UIApplication, url: NSURL, options: NSDictionary): boolean; applicationOpenURLSourceApplicationAnnotation?(application: UIApplication, url: NSURL, sourceApplication: string, annotation: any): boolean; applicationPerformActionForShortcutItemCompletionHandler?(application: UIApplication, shortcutItem: UIApplicationShortcutItem, completionHandler: (p1: boolean) => void): void; applicationPerformFetchWithCompletionHandler?(application: UIApplication, completionHandler: (p1: UIBackgroundFetchResult) => void): void; applicationProtectedDataDidBecomeAvailable?(application: UIApplication): void; applicationProtectedDataWillBecomeUnavailable?(application: UIApplication): void; applicationShouldAllowExtensionPointIdentifier?(application: UIApplication, extensionPointIdentifier: string): boolean; applicationShouldRequestHealthAuthorization?(application: UIApplication): void; applicationShouldRestoreApplicationState?(application: UIApplication, coder: NSCoder): boolean; applicationShouldSaveApplicationState?(application: UIApplication, coder: NSCoder): boolean; applicationSignificantTimeChange?(application: UIApplication): void; applicationSupportedInterfaceOrientationsForWindow?(application: UIApplication, window: UIWindow): UIInterfaceOrientationMask; applicationUserDidAcceptCloudKitShareWithMetadata?(application: UIApplication, cloudKitShareMetadata: CKShareMetadata): void; applicationViewControllerWithRestorationIdentifierPathCoder?(application: UIApplication, identifierComponents: NSArray, coder: NSCoder): UIViewController; applicationWillChangeStatusBarFrame?(application: UIApplication, newStatusBarFrame: CGRect): void; applicationWillChangeStatusBarOrientationDuration?(application: UIApplication, newStatusBarOrientation: UIInterfaceOrientation, duration: number): void; applicationWillContinueUserActivityWithType?(application: UIApplication, userActivityType: string): boolean; applicationWillEncodeRestorableStateWithCoder?(application: UIApplication, coder: NSCoder): void; applicationWillEnterForeground?(application: UIApplication): void; applicationWillFinishLaunchingWithOptions?(application: UIApplication, launchOptions: NSDictionary): boolean; applicationWillResignActive?(application: UIApplication): void; applicationWillTerminate?(application: UIApplication): void; } declare var UIApplicationDelegate: { prototype: UIApplicationDelegate; }; declare var UIApplicationDidBecomeActiveNotification: string; declare var UIApplicationDidChangeStatusBarFrameNotification: string; declare var UIApplicationDidChangeStatusBarOrientationNotification: string; declare var UIApplicationDidEnterBackgroundNotification: string; declare var UIApplicationDidFinishLaunchingNotification: string; declare var UIApplicationDidReceiveMemoryWarningNotification: string; declare var UIApplicationInvalidInterfaceOrientationException: string; declare var UIApplicationKeyboardExtensionPointIdentifier: string; declare var UIApplicationLaunchOptionsAnnotationKey: string; declare var UIApplicationLaunchOptionsBluetoothCentralsKey: string; declare var UIApplicationLaunchOptionsBluetoothPeripheralsKey: string; declare var UIApplicationLaunchOptionsCloudKitShareMetadataKey: string; declare var UIApplicationLaunchOptionsLocalNotificationKey: string; declare var UIApplicationLaunchOptionsLocationKey: string; declare var UIApplicationLaunchOptionsNewsstandDownloadsKey: string; declare var UIApplicationLaunchOptionsRemoteNotificationKey: string; declare var UIApplicationLaunchOptionsShortcutItemKey: string; declare var UIApplicationLaunchOptionsSourceApplicationKey: string; declare var UIApplicationLaunchOptionsURLKey: string; declare var UIApplicationLaunchOptionsUserActivityDictionaryKey: string; declare var UIApplicationLaunchOptionsUserActivityTypeKey: string; declare function UIApplicationMain(argc: number, argv: interop.Reference, principalClassName: string, delegateClassName: string): number; declare var UIApplicationOpenSettingsURLString: string; declare var UIApplicationOpenURLOptionUniversalLinksOnly: string; declare var UIApplicationOpenURLOptionsAnnotationKey: string; declare var UIApplicationOpenURLOptionsOpenInPlaceKey: string; declare var UIApplicationOpenURLOptionsSourceApplicationKey: string; declare var UIApplicationProtectedDataDidBecomeAvailable: string; declare var UIApplicationProtectedDataWillBecomeUnavailable: string; declare class UIApplicationShortcutIcon extends NSObject implements NSCopying { static alloc(): UIApplicationShortcutIcon; // inherited from NSObject static iconWithContact(contact: CNContact): UIApplicationShortcutIcon; static iconWithTemplateImageName(templateImageName: string): UIApplicationShortcutIcon; static iconWithType(type: UIApplicationShortcutIconType): UIApplicationShortcutIcon; static new(): UIApplicationShortcutIcon; // inherited from NSObject copyWithZone(zone: interop.Pointer | interop.Reference): any; } declare const enum UIApplicationShortcutIconType { Compose = 0, Play = 1, Pause = 2, Add = 3, Location = 4, Search = 5, Share = 6, Prohibit = 7, Contact = 8, Home = 9, MarkLocation = 10, Favorite = 11, Love = 12, Cloud = 13, Invitation = 14, Confirmation = 15, Mail = 16, Message = 17, Date = 18, Time = 19, CapturePhoto = 20, CaptureVideo = 21, Task = 22, TaskCompleted = 23, Alarm = 24, Bookmark = 25, Shuffle = 26, Audio = 27, Update = 28 } declare class UIApplicationShortcutItem extends NSObject implements NSCopying, NSMutableCopying { static alloc(): UIApplicationShortcutItem; // inherited from NSObject static new(): UIApplicationShortcutItem; // inherited from NSObject readonly icon: UIApplicationShortcutIcon; readonly localizedSubtitle: string; readonly localizedTitle: string; readonly type: string; readonly userInfo: NSDictionary; constructor(o: { type: string; localizedTitle: string; }); constructor(o: { type: string; localizedTitle: string; localizedSubtitle: string; icon: UIApplicationShortcutIcon; userInfo: NSDictionary; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; initWithTypeLocalizedTitle(type: string, localizedTitle: string): this; initWithTypeLocalizedTitleLocalizedSubtitleIconUserInfo(type: string, localizedTitle: string, localizedSubtitle: string, icon: UIApplicationShortcutIcon, userInfo: NSDictionary): this; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } declare var UIApplicationSignificantTimeChangeNotification: string; declare const enum UIApplicationState { Active = 0, Inactive = 1, Background = 2 } declare var UIApplicationStateRestorationBundleVersionKey: string; declare var UIApplicationStateRestorationSystemVersionKey: string; declare var UIApplicationStateRestorationTimestampKey: string; declare var UIApplicationStateRestorationUserInterfaceIdiomKey: string; declare var UIApplicationStatusBarFrameUserInfoKey: string; declare var UIApplicationStatusBarOrientationUserInfoKey: string; declare var UIApplicationUserDidTakeScreenshotNotification: string; declare var UIApplicationWillChangeStatusBarFrameNotification: string; declare var UIApplicationWillChangeStatusBarOrientationNotification: string; declare var UIApplicationWillEnterForegroundNotification: string; declare var UIApplicationWillResignActiveNotification: string; declare var UIApplicationWillTerminateNotification: string; declare class UIAttachmentBehavior extends UIDynamicBehavior { static alloc(): UIAttachmentBehavior; // inherited from NSObject static fixedAttachmentWithItemAttachedToItemAttachmentAnchor(item1: UIDynamicItem, item2: UIDynamicItem, point: CGPoint): UIAttachmentBehavior; static limitAttachmentWithItemOffsetFromCenterAttachedToItemOffsetFromCenter(item1: UIDynamicItem, offset1: UIOffset, item2: UIDynamicItem, offset2: UIOffset): UIAttachmentBehavior; static new(): UIAttachmentBehavior; // inherited from NSObject static pinAttachmentWithItemAttachedToItemAttachmentAnchor(item1: UIDynamicItem, item2: UIDynamicItem, point: CGPoint): UIAttachmentBehavior; static slidingAttachmentWithItemAttachedToItemAttachmentAnchorAxisOfTranslation(item1: UIDynamicItem, item2: UIDynamicItem, point: CGPoint, axis: CGVector): UIAttachmentBehavior; static slidingAttachmentWithItemAttachmentAnchorAxisOfTranslation(item: UIDynamicItem, point: CGPoint, axis: CGVector): UIAttachmentBehavior; anchorPoint: CGPoint; readonly attachedBehaviorType: UIAttachmentBehaviorType; attachmentRange: UIFloatRange; damping: number; frequency: number; frictionTorque: number; readonly items: NSArray; length: number; constructor(o: { item: UIDynamicItem; attachedToAnchor: CGPoint; }); constructor(o: { item: UIDynamicItem; attachedToItem: UIDynamicItem; }); constructor(o: { item: UIDynamicItem; offsetFromCenter: UIOffset; attachedToAnchor: CGPoint; }); constructor(o: { item: UIDynamicItem; offsetFromCenter: UIOffset; attachedToItem: UIDynamicItem; offsetFromCenter2: UIOffset; }); initWithItemAttachedToAnchor(item: UIDynamicItem, point: CGPoint): this; initWithItemAttachedToItem(item1: UIDynamicItem, item2: UIDynamicItem): this; initWithItemOffsetFromCenterAttachedToAnchor(item: UIDynamicItem, offset: UIOffset, point: CGPoint): this; initWithItemOffsetFromCenterAttachedToItemOffsetFromCenter(item1: UIDynamicItem, offset1: UIOffset, item2: UIDynamicItem, offset2: UIOffset): this; } declare const enum UIAttachmentBehaviorType { Items = 0, Anchor = 1 } declare const enum UIBackgroundFetchResult { NewData = 0, NoData = 1, Failed = 2 } declare const enum UIBackgroundRefreshStatus { Restricted = 0, Denied = 1, Available = 2 } declare var UIBackgroundTaskInvalid: number; declare class UIBarButtonItem extends UIBarItem implements NSCoding { static alloc(): UIBarButtonItem; // inherited from NSObject static appearance(): UIBarButtonItem; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIBarButtonItem; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIBarButtonItem; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIBarButtonItem; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIBarButtonItem; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIBarButtonItem; // inherited from UIAppearance static new(): UIBarButtonItem; // inherited from NSObject action: string; readonly buttonGroup: UIBarButtonItemGroup; customView: UIView; possibleTitles: NSSet; style: UIBarButtonItemStyle; target: any; tintColor: UIColor; width: number; constructor(o: { barButtonSystemItem: UIBarButtonSystemItem; target: any; action: string; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { customView: UIView; }); constructor(o: { image: UIImage; landscapeImagePhone: UIImage; style: UIBarButtonItemStyle; target: any; action: string; }); constructor(o: { image: UIImage; style: UIBarButtonItemStyle; target: any; action: string; }); constructor(o: { title: string; style: UIBarButtonItemStyle; target: any; action: string; }); backButtonBackgroundImageForStateBarMetrics(state: UIControlState, barMetrics: UIBarMetrics): UIImage; backButtonBackgroundVerticalPositionAdjustmentForBarMetrics(barMetrics: UIBarMetrics): number; backButtonTitlePositionAdjustmentForBarMetrics(barMetrics: UIBarMetrics): UIOffset; backgroundImageForStateBarMetrics(state: UIControlState, barMetrics: UIBarMetrics): UIImage; backgroundImageForStateStyleBarMetrics(state: UIControlState, style: UIBarButtonItemStyle, barMetrics: UIBarMetrics): UIImage; backgroundVerticalPositionAdjustmentForBarMetrics(barMetrics: UIBarMetrics): number; encodeWithCoder(aCoder: NSCoder): void; initWithBarButtonSystemItemTargetAction(systemItem: UIBarButtonSystemItem, target: any, action: string): this; initWithCoder(aDecoder: NSCoder): this; initWithCustomView(customView: UIView): this; initWithImageLandscapeImagePhoneStyleTargetAction(image: UIImage, landscapeImagePhone: UIImage, style: UIBarButtonItemStyle, target: any, action: string): this; initWithImageStyleTargetAction(image: UIImage, style: UIBarButtonItemStyle, target: any, action: string): this; initWithTitleStyleTargetAction(title: string, style: UIBarButtonItemStyle, target: any, action: string): this; setBackButtonBackgroundImageForStateBarMetrics(backgroundImage: UIImage, state: UIControlState, barMetrics: UIBarMetrics): void; setBackButtonBackgroundVerticalPositionAdjustmentForBarMetrics(adjustment: number, barMetrics: UIBarMetrics): void; setBackButtonTitlePositionAdjustmentForBarMetrics(adjustment: UIOffset, barMetrics: UIBarMetrics): void; setBackgroundImageForStateBarMetrics(backgroundImage: UIImage, state: UIControlState, barMetrics: UIBarMetrics): void; setBackgroundImageForStateStyleBarMetrics(backgroundImage: UIImage, state: UIControlState, style: UIBarButtonItemStyle, barMetrics: UIBarMetrics): void; setBackgroundVerticalPositionAdjustmentForBarMetrics(adjustment: number, barMetrics: UIBarMetrics): void; setTitlePositionAdjustmentForBarMetrics(adjustment: UIOffset, barMetrics: UIBarMetrics): void; titlePositionAdjustmentForBarMetrics(barMetrics: UIBarMetrics): UIOffset; } declare class UIBarButtonItemGroup extends NSObject implements NSCoding { static alloc(): UIBarButtonItemGroup; // inherited from NSObject static new(): UIBarButtonItemGroup; // inherited from NSObject barButtonItems: NSArray; readonly displayingRepresentativeItem: boolean; representativeItem: UIBarButtonItem; constructor(o: { barButtonItems: NSArray; representativeItem: UIBarButtonItem; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding encodeWithCoder(aCoder: NSCoder): void; initWithBarButtonItemsRepresentativeItem(barButtonItems: NSArray, representativeItem: UIBarButtonItem): this; initWithCoder(aDecoder: NSCoder): this; } declare const enum UIBarButtonItemStyle { Plain = 0, Bordered = 1, Done = 2 } declare const enum UIBarButtonSystemItem { Done = 0, Cancel = 1, Edit = 2, Save = 3, Add = 4, FlexibleSpace = 5, FixedSpace = 6, Compose = 7, Reply = 8, Action = 9, Organize = 10, Bookmarks = 11, Search = 12, Refresh = 13, Stop = 14, Camera = 15, Trash = 16, Play = 17, Pause = 18, Rewind = 19, FastForward = 20, Undo = 21, Redo = 22, PageCurl = 23 } declare class UIBarItem extends NSObject implements NSCoding, UIAccessibilityIdentification, UIAppearance { static alloc(): UIBarItem; // inherited from NSObject static appearance(): UIBarItem; static appearanceForTraitCollection(trait: UITraitCollection): UIBarItem; static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIBarItem; static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIBarItem; static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIBarItem; static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIBarItem; static new(): UIBarItem; // inherited from NSObject enabled: boolean; image: UIImage; imageInsets: UIEdgeInsets; landscapeImagePhone: UIImage; landscapeImagePhoneInsets: UIEdgeInsets; tag: number; title: string; accessibilityIdentifier: string; // inherited from UIAccessibilityIdentification readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { coder: NSCoder; }); // inherited from NSCoding class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; setTitleTextAttributesForState(attributes: NSDictionary, state: UIControlState): void; titleTextAttributesForState(state: UIControlState): NSDictionary; } declare const enum UIBarMetrics { Default = 0, Compact = 1, DefaultPrompt = 101, CompactPrompt = 102, LandscapePhone = 1, LandscapePhonePrompt = 102 } declare const enum UIBarPosition { Any = 0, Bottom = 1, Top = 2, TopAttached = 3 } interface UIBarPositioning extends NSObjectProtocol { barPosition: UIBarPosition; } declare var UIBarPositioning: { prototype: UIBarPositioning; }; interface UIBarPositioningDelegate extends NSObjectProtocol { positionForBar?(bar: UIBarPositioning): UIBarPosition; } declare var UIBarPositioningDelegate: { prototype: UIBarPositioningDelegate; }; declare const enum UIBarStyle { Default = 0, Black = 1, BlackOpaque = 1, BlackTranslucent = 2 } declare const enum UIBaselineAdjustment { AlignBaselines = 0, AlignCenters = 1, None = 2 } declare class UIBezierPath extends NSObject implements NSCoding, NSCopying { static alloc(): UIBezierPath; // inherited from NSObject static bezierPath(): UIBezierPath; static bezierPathWithArcCenterRadiusStartAngleEndAngleClockwise(center: CGPoint, radius: number, startAngle: number, endAngle: number, clockwise: boolean): UIBezierPath; static bezierPathWithCGPath(CGPath: any): UIBezierPath; static bezierPathWithOvalInRect(rect: CGRect): UIBezierPath; static bezierPathWithRect(rect: CGRect): UIBezierPath; static bezierPathWithRoundedRectByRoundingCornersCornerRadii(rect: CGRect, corners: UIRectCorner, cornerRadii: CGSize): UIBezierPath; static bezierPathWithRoundedRectCornerRadius(rect: CGRect, cornerRadius: number): UIBezierPath; static new(): UIBezierPath; // inherited from NSObject CGPath: any; readonly bounds: CGRect; readonly currentPoint: CGPoint; readonly empty: boolean; flatness: number; lineCapStyle: CGLineCap; lineJoinStyle: CGLineJoin; lineWidth: number; miterLimit: number; usesEvenOddFillRule: boolean; constructor(o: { coder: NSCoder; }); // inherited from NSCoding addArcWithCenterRadiusStartAngleEndAngleClockwise(center: CGPoint, radius: number, startAngle: number, endAngle: number, clockwise: boolean): void; addClip(): void; addCurveToPointControlPoint1ControlPoint2(endPoint: CGPoint, controlPoint1: CGPoint, controlPoint2: CGPoint): void; addLineToPoint(point: CGPoint): void; addQuadCurveToPointControlPoint(endPoint: CGPoint, controlPoint: CGPoint): void; appendPath(bezierPath: UIBezierPath): void; applyTransform(transform: CGAffineTransform): void; bezierPathByReversingPath(): UIBezierPath; closePath(): void; containsPoint(point: CGPoint): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; fill(): void; fillWithBlendModeAlpha(blendMode: CGBlendMode, alpha: number): void; getLineDashCountPhase(pattern: interop.Pointer | interop.Reference, count: interop.Pointer | interop.Reference, phase: interop.Pointer | interop.Reference): void; initWithCoder(aDecoder: NSCoder): this; moveToPoint(point: CGPoint): void; removeAllPoints(): void; setLineDashCountPhase(pattern: interop.Pointer | interop.Reference, count: number, phase: number): void; stroke(): void; strokeWithBlendModeAlpha(blendMode: CGBlendMode, alpha: number): void; } declare class UIBlurEffect extends UIVisualEffect { static alloc(): UIBlurEffect; // inherited from NSObject static effectWithStyle(style: UIBlurEffectStyle): UIBlurEffect; static new(): UIBlurEffect; // inherited from NSObject } declare const enum UIBlurEffectStyle { ExtraLight = 0, Light = 1, Dark = 2, ExtraDark = 3, Regular = 4, Prominent = 5 } declare class UIButton extends UIControl implements NSCoding { static alloc(): UIButton; // inherited from NSObject static appearance(): UIButton; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIButton; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIButton; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIButton; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIButton; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIButton; // inherited from UIAppearance static buttonWithType(buttonType: UIButtonType): UIButton; static new(): UIButton; // inherited from NSObject adjustsImageWhenDisabled: boolean; adjustsImageWhenHighlighted: boolean; readonly buttonType: UIButtonType; contentEdgeInsets: UIEdgeInsets; readonly currentAttributedTitle: NSAttributedString; readonly currentBackgroundImage: UIImage; readonly currentImage: UIImage; readonly currentTitle: string; readonly currentTitleColor: UIColor; readonly currentTitleShadowColor: UIColor; font: UIFont; imageEdgeInsets: UIEdgeInsets; readonly imageView: UIImageView; lineBreakMode: NSLineBreakMode; reversesTitleShadowWhenHighlighted: boolean; showsTouchWhenHighlighted: boolean; titleEdgeInsets: UIEdgeInsets; readonly titleLabel: UILabel; titleShadowOffset: CGSize; constructor(o: { coder: NSCoder; }); // inherited from NSCoding attributedTitleForState(state: UIControlState): NSAttributedString; backgroundImageForState(state: UIControlState): UIImage; backgroundRectForBounds(bounds: CGRect): CGRect; contentRectForBounds(bounds: CGRect): CGRect; encodeWithCoder(aCoder: NSCoder): void; imageForState(state: UIControlState): UIImage; imageRectForContentRect(contentRect: CGRect): CGRect; initWithCoder(aDecoder: NSCoder): this; setAttributedTitleForState(title: NSAttributedString, state: UIControlState): void; setBackgroundImageForState(image: UIImage, state: UIControlState): void; setImageForState(image: UIImage, state: UIControlState): void; setTitleColorForState(color: UIColor, state: UIControlState): void; setTitleForState(title: string, state: UIControlState): void; setTitleShadowColorForState(color: UIColor, state: UIControlState): void; titleColorForState(state: UIControlState): UIColor; titleForState(state: UIControlState): string; titleRectForContentRect(contentRect: CGRect): CGRect; titleShadowColorForState(state: UIControlState): UIColor; } declare const enum UIButtonType { Custom = 0, System = 1, DetailDisclosure = 2, InfoLight = 3, InfoDark = 4, ContactAdd = 5, RoundedRect = 1 } declare class UICloudSharingController extends UIViewController { static alloc(): UICloudSharingController; // inherited from NSObject static new(): UICloudSharingController; // inherited from NSObject availablePermissions: UICloudSharingPermissionOptions; delegate: UICloudSharingControllerDelegate; readonly share: CKShare; constructor(o: { preparationHandler: (p1: UICloudSharingController, p2: (p1: CKShare, p2: CKContainer, p3: NSError) => void) => void; }); constructor(o: { share: CKShare; container: CKContainer; }); activityItemSource(): UIActivityItemSource; initWithPreparationHandler(preparationHandler: (p1: UICloudSharingController, p2: (p1: CKShare, p2: CKContainer, p3: NSError) => void) => void): this; initWithShareContainer(share: CKShare, container: CKContainer): this; } interface UICloudSharingControllerDelegate extends NSObjectProtocol { cloudSharingControllerDidSaveShare?(csc: UICloudSharingController): void; cloudSharingControllerDidStopSharing?(csc: UICloudSharingController): void; cloudSharingControllerFailedToSaveShareWithError(csc: UICloudSharingController, error: NSError): void; itemThumbnailDataForCloudSharingController?(csc: UICloudSharingController): NSData; itemTitleForCloudSharingController(csc: UICloudSharingController): string; itemTypeForCloudSharingController?(csc: UICloudSharingController): string; } declare var UICloudSharingControllerDelegate: { prototype: UICloudSharingControllerDelegate; }; declare const enum UICloudSharingPermissionOptions { Standard = 0, AllowPublic = 1, AllowPrivate = 2, AllowReadOnly = 4, AllowReadWrite = 8 } declare const enum UICollectionElementCategory { Cell = 0, SupplementaryView = 1, DecorationView = 2 } declare var UICollectionElementKindSectionFooter: string; declare var UICollectionElementKindSectionHeader: string; declare class UICollectionReusableView extends UIView { static alloc(): UICollectionReusableView; // inherited from NSObject static appearance(): UICollectionReusableView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UICollectionReusableView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UICollectionReusableView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UICollectionReusableView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UICollectionReusableView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UICollectionReusableView; // inherited from UIAppearance static new(): UICollectionReusableView; // inherited from NSObject readonly reuseIdentifier: string; applyLayoutAttributes(layoutAttributes: UICollectionViewLayoutAttributes): void; didTransitionFromLayoutToLayout(oldLayout: UICollectionViewLayout, newLayout: UICollectionViewLayout): void; preferredLayoutAttributesFittingAttributes(layoutAttributes: UICollectionViewLayoutAttributes): UICollectionViewLayoutAttributes; prepareForReuse(): void; willTransitionFromLayoutToLayout(oldLayout: UICollectionViewLayout, newLayout: UICollectionViewLayout): void; } declare const enum UICollectionUpdateAction { Insert = 0, Delete = 1, Reload = 2, Move = 3, None = 4 } declare class UICollectionView extends UIScrollView { static alloc(): UICollectionView; // inherited from NSObject static appearance(): UICollectionView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UICollectionView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UICollectionView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UICollectionView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UICollectionView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UICollectionView; // inherited from UIAppearance static new(): UICollectionView; // inherited from NSObject allowsMultipleSelection: boolean; allowsSelection: boolean; backgroundView: UIView; collectionViewLayout: UICollectionViewLayout; dataSource: UICollectionViewDataSource; delegate: UICollectionViewDelegate; readonly indexPathsForSelectedItems: NSArray; readonly indexPathsForVisibleItems: NSArray; readonly numberOfSections: number; prefetchDataSource: UICollectionViewDataSourcePrefetching; prefetchingEnabled: boolean; remembersLastFocusedIndexPath: boolean; readonly visibleCells: NSArray; constructor(o: { frame: CGRect; collectionViewLayout: UICollectionViewLayout; }); beginInteractiveMovementForItemAtIndexPath(indexPath: NSIndexPath): boolean; cancelInteractiveMovement(): void; cancelInteractiveTransition(): void; cellForItemAtIndexPath(indexPath: NSIndexPath): UICollectionViewCell; deleteItemsAtIndexPaths(indexPaths: NSArray): void; deleteSections(sections: NSIndexSet): void; dequeueReusableCellWithReuseIdentifierForIndexPath(identifier: string, indexPath: NSIndexPath): UICollectionViewCell; dequeueReusableSupplementaryViewOfKindWithReuseIdentifierForIndexPath(elementKind: string, identifier: string, indexPath: NSIndexPath): UICollectionReusableView; deselectItemAtIndexPathAnimated(indexPath: NSIndexPath, animated: boolean): void; endInteractiveMovement(): void; finishInteractiveTransition(): void; indexPathForCell(cell: UICollectionViewCell): NSIndexPath; indexPathForItemAtPoint(point: CGPoint): NSIndexPath; indexPathsForVisibleSupplementaryElementsOfKind(elementKind: string): NSArray; initWithFrameCollectionViewLayout(frame: CGRect, layout: UICollectionViewLayout): this; insertItemsAtIndexPaths(indexPaths: NSArray): void; insertSections(sections: NSIndexSet): void; layoutAttributesForItemAtIndexPath(indexPath: NSIndexPath): UICollectionViewLayoutAttributes; layoutAttributesForSupplementaryElementOfKindAtIndexPath(kind: string, indexPath: NSIndexPath): UICollectionViewLayoutAttributes; moveItemAtIndexPathToIndexPath(indexPath: NSIndexPath, newIndexPath: NSIndexPath): void; moveSectionToSection(section: number, newSection: number): void; numberOfItemsInSection(section: number): number; performBatchUpdatesCompletion(updates: () => void, completion: (p1: boolean) => void): void; registerClassForCellWithReuseIdentifier(cellClass: typeof NSObject, identifier: string): void; registerClassForSupplementaryViewOfKindWithReuseIdentifier(viewClass: typeof NSObject, elementKind: string, identifier: string): void; registerNibForCellWithReuseIdentifier(nib: UINib, identifier: string): void; registerNibForSupplementaryViewOfKindWithReuseIdentifier(nib: UINib, kind: string, identifier: string): void; reloadData(): void; reloadItemsAtIndexPaths(indexPaths: NSArray): void; reloadSections(sections: NSIndexSet): void; scrollToItemAtIndexPathAtScrollPositionAnimated(indexPath: NSIndexPath, scrollPosition: UICollectionViewScrollPosition, animated: boolean): void; selectItemAtIndexPathAnimatedScrollPosition(indexPath: NSIndexPath, animated: boolean, scrollPosition: UICollectionViewScrollPosition): void; setCollectionViewLayoutAnimated(layout: UICollectionViewLayout, animated: boolean): void; setCollectionViewLayoutAnimatedCompletion(layout: UICollectionViewLayout, animated: boolean, completion: (p1: boolean) => void): void; startInteractiveTransitionToCollectionViewLayoutCompletion(layout: UICollectionViewLayout, completion: (p1: boolean, p2: boolean) => void): UICollectionViewTransitionLayout; supplementaryViewForElementKindAtIndexPath(elementKind: string, indexPath: NSIndexPath): UICollectionReusableView; updateInteractiveMovementTargetPosition(targetPosition: CGPoint): void; visibleSupplementaryViewsOfKind(elementKind: string): NSArray; } declare class UICollectionViewCell extends UICollectionReusableView { static alloc(): UICollectionViewCell; // inherited from NSObject static appearance(): UICollectionViewCell; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UICollectionViewCell; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UICollectionViewCell; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UICollectionViewCell; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UICollectionViewCell; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UICollectionViewCell; // inherited from UIAppearance static new(): UICollectionViewCell; // inherited from NSObject backgroundView: UIView; readonly contentView: UIView; highlighted: boolean; selected: boolean; selectedBackgroundView: UIView; } declare class UICollectionViewController extends UIViewController implements UICollectionViewDataSource, UICollectionViewDelegate { static alloc(): UICollectionViewController; // inherited from NSObject static new(): UICollectionViewController; // inherited from NSObject clearsSelectionOnViewWillAppear: boolean; collectionView: UICollectionView; readonly collectionViewLayout: UICollectionViewLayout; installsStandardGestureForInteractiveMovement: boolean; useLayoutToLayoutNavigationTransitions: boolean; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { collectionViewLayout: UICollectionViewLayout; }); class(): typeof NSObject; collectionViewCanFocusItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewCanMoveItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewCanPerformActionForItemAtIndexPathWithSender(collectionView: UICollectionView, action: string, indexPath: NSIndexPath, sender: any): boolean; collectionViewCellForItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): UICollectionViewCell; collectionViewDidDeselectItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void; collectionViewDidEndDisplayingCellForItemAtIndexPath(collectionView: UICollectionView, cell: UICollectionViewCell, indexPath: NSIndexPath): void; collectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath(collectionView: UICollectionView, view: UICollectionReusableView, elementKind: string, indexPath: NSIndexPath): void; collectionViewDidHighlightItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void; collectionViewDidSelectItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void; collectionViewDidUnhighlightItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): void; collectionViewDidUpdateFocusInContextWithAnimationCoordinator(collectionView: UICollectionView, context: UICollectionViewFocusUpdateContext, coordinator: UIFocusAnimationCoordinator): void; collectionViewMoveItemAtIndexPathToIndexPath(collectionView: UICollectionView, sourceIndexPath: NSIndexPath, destinationIndexPath: NSIndexPath): void; collectionViewNumberOfItemsInSection(collectionView: UICollectionView, section: number): number; collectionViewPerformActionForItemAtIndexPathWithSender(collectionView: UICollectionView, action: string, indexPath: NSIndexPath, sender: any): void; collectionViewShouldDeselectItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewShouldHighlightItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewShouldSelectItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewShouldShowMenuForItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewShouldUpdateFocusInContext(collectionView: UICollectionView, context: UICollectionViewFocusUpdateContext): boolean; collectionViewTargetContentOffsetForProposedContentOffset(collectionView: UICollectionView, proposedContentOffset: CGPoint): CGPoint; collectionViewTargetIndexPathForMoveFromItemAtIndexPathToProposedIndexPath(collectionView: UICollectionView, originalIndexPath: NSIndexPath, proposedIndexPath: NSIndexPath): NSIndexPath; collectionViewTransitionLayoutForOldLayoutNewLayout(collectionView: UICollectionView, fromLayout: UICollectionViewLayout, toLayout: UICollectionViewLayout): UICollectionViewTransitionLayout; collectionViewViewForSupplementaryElementOfKindAtIndexPath(collectionView: UICollectionView, kind: string, indexPath: NSIndexPath): UICollectionReusableView; collectionViewWillDisplayCellForItemAtIndexPath(collectionView: UICollectionView, cell: UICollectionViewCell, indexPath: NSIndexPath): void; collectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath(collectionView: UICollectionView, view: UICollectionReusableView, elementKind: string, indexPath: NSIndexPath): void; conformsToProtocol(aProtocol: any /* Protocol */): boolean; indexPathForPreferredFocusedViewInCollectionView(collectionView: UICollectionView): NSIndexPath; initWithCollectionViewLayout(layout: UICollectionViewLayout): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; numberOfSectionsInCollectionView(collectionView: UICollectionView): number; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; scrollViewDidEndDecelerating(scrollView: UIScrollView): void; scrollViewDidEndDraggingWillDecelerate(scrollView: UIScrollView, decelerate: boolean): void; scrollViewDidEndScrollingAnimation(scrollView: UIScrollView): void; scrollViewDidEndZoomingWithViewAtScale(scrollView: UIScrollView, view: UIView, scale: number): void; scrollViewDidScroll(scrollView: UIScrollView): void; scrollViewDidScrollToTop(scrollView: UIScrollView): void; scrollViewDidZoom(scrollView: UIScrollView): void; scrollViewShouldScrollToTop(scrollView: UIScrollView): boolean; scrollViewWillBeginDecelerating(scrollView: UIScrollView): void; scrollViewWillBeginDragging(scrollView: UIScrollView): void; scrollViewWillBeginZoomingWithView(scrollView: UIScrollView, view: UIView): void; scrollViewWillEndDraggingWithVelocityTargetContentOffset(scrollView: UIScrollView, velocity: CGPoint, targetContentOffset: interop.Pointer | interop.Reference): void; self(): this; viewForZoomingInScrollView(scrollView: UIScrollView): UIView; } interface UICollectionViewDataSource extends NSObjectProtocol { collectionViewCanMoveItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewCellForItemAtIndexPath(collectionView: UICollectionView, indexPath: NSIndexPath): UICollectionViewCell; collectionViewMoveItemAtIndexPathToIndexPath?(collectionView: UICollectionView, sourceIndexPath: NSIndexPath, destinationIndexPath: NSIndexPath): void; collectionViewNumberOfItemsInSection(collectionView: UICollectionView, section: number): number; collectionViewViewForSupplementaryElementOfKindAtIndexPath?(collectionView: UICollectionView, kind: string, indexPath: NSIndexPath): UICollectionReusableView; numberOfSectionsInCollectionView?(collectionView: UICollectionView): number; } declare var UICollectionViewDataSource: { prototype: UICollectionViewDataSource; }; interface UICollectionViewDataSourcePrefetching extends NSObjectProtocol { collectionViewCancelPrefetchingForItemsAtIndexPaths?(collectionView: UICollectionView, indexPaths: NSArray): void; collectionViewPrefetchItemsAtIndexPaths(collectionView: UICollectionView, indexPaths: NSArray): void; } declare var UICollectionViewDataSourcePrefetching: { prototype: UICollectionViewDataSourcePrefetching; }; interface UICollectionViewDelegate extends UIScrollViewDelegate { collectionViewCanFocusItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewCanPerformActionForItemAtIndexPathWithSender?(collectionView: UICollectionView, action: string, indexPath: NSIndexPath, sender: any): boolean; collectionViewDidDeselectItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): void; collectionViewDidEndDisplayingCellForItemAtIndexPath?(collectionView: UICollectionView, cell: UICollectionViewCell, indexPath: NSIndexPath): void; collectionViewDidEndDisplayingSupplementaryViewForElementOfKindAtIndexPath?(collectionView: UICollectionView, view: UICollectionReusableView, elementKind: string, indexPath: NSIndexPath): void; collectionViewDidHighlightItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): void; collectionViewDidSelectItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): void; collectionViewDidUnhighlightItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): void; collectionViewDidUpdateFocusInContextWithAnimationCoordinator?(collectionView: UICollectionView, context: UICollectionViewFocusUpdateContext, coordinator: UIFocusAnimationCoordinator): void; collectionViewPerformActionForItemAtIndexPathWithSender?(collectionView: UICollectionView, action: string, indexPath: NSIndexPath, sender: any): void; collectionViewShouldDeselectItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewShouldHighlightItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewShouldSelectItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewShouldShowMenuForItemAtIndexPath?(collectionView: UICollectionView, indexPath: NSIndexPath): boolean; collectionViewShouldUpdateFocusInContext?(collectionView: UICollectionView, context: UICollectionViewFocusUpdateContext): boolean; collectionViewTargetContentOffsetForProposedContentOffset?(collectionView: UICollectionView, proposedContentOffset: CGPoint): CGPoint; collectionViewTargetIndexPathForMoveFromItemAtIndexPathToProposedIndexPath?(collectionView: UICollectionView, originalIndexPath: NSIndexPath, proposedIndexPath: NSIndexPath): NSIndexPath; collectionViewTransitionLayoutForOldLayoutNewLayout?(collectionView: UICollectionView, fromLayout: UICollectionViewLayout, toLayout: UICollectionViewLayout): UICollectionViewTransitionLayout; collectionViewWillDisplayCellForItemAtIndexPath?(collectionView: UICollectionView, cell: UICollectionViewCell, indexPath: NSIndexPath): void; collectionViewWillDisplaySupplementaryViewForElementKindAtIndexPath?(collectionView: UICollectionView, view: UICollectionReusableView, elementKind: string, indexPath: NSIndexPath): void; indexPathForPreferredFocusedViewInCollectionView?(collectionView: UICollectionView): NSIndexPath; } declare var UICollectionViewDelegate: { prototype: UICollectionViewDelegate; }; interface UICollectionViewDelegateFlowLayout extends UICollectionViewDelegate { collectionViewLayoutInsetForSectionAtIndex?(collectionView: UICollectionView, collectionViewLayout: UICollectionViewLayout, section: number): UIEdgeInsets; collectionViewLayoutMinimumInteritemSpacingForSectionAtIndex?(collectionView: UICollectionView, collectionViewLayout: UICollectionViewLayout, section: number): number; collectionViewLayoutMinimumLineSpacingForSectionAtIndex?(collectionView: UICollectionView, collectionViewLayout: UICollectionViewLayout, section: number): number; collectionViewLayoutReferenceSizeForFooterInSection?(collectionView: UICollectionView, collectionViewLayout: UICollectionViewLayout, section: number): CGSize; collectionViewLayoutReferenceSizeForHeaderInSection?(collectionView: UICollectionView, collectionViewLayout: UICollectionViewLayout, section: number): CGSize; collectionViewLayoutSizeForItemAtIndexPath?(collectionView: UICollectionView, collectionViewLayout: UICollectionViewLayout, indexPath: NSIndexPath): CGSize; } declare var UICollectionViewDelegateFlowLayout: { prototype: UICollectionViewDelegateFlowLayout; }; declare class UICollectionViewFlowLayout extends UICollectionViewLayout { static alloc(): UICollectionViewFlowLayout; // inherited from NSObject static new(): UICollectionViewFlowLayout; // inherited from NSObject estimatedItemSize: CGSize; footerReferenceSize: CGSize; headerReferenceSize: CGSize; itemSize: CGSize; minimumInteritemSpacing: number; minimumLineSpacing: number; scrollDirection: UICollectionViewScrollDirection; sectionFootersPinToVisibleBounds: boolean; sectionHeadersPinToVisibleBounds: boolean; sectionInset: UIEdgeInsets; } declare var UICollectionViewFlowLayoutAutomaticSize: CGSize; declare class UICollectionViewFlowLayoutInvalidationContext extends UICollectionViewLayoutInvalidationContext { static alloc(): UICollectionViewFlowLayoutInvalidationContext; // inherited from NSObject static new(): UICollectionViewFlowLayoutInvalidationContext; // inherited from NSObject invalidateFlowLayoutAttributes: boolean; invalidateFlowLayoutDelegateMetrics: boolean; } declare class UICollectionViewFocusUpdateContext extends UIFocusUpdateContext { static alloc(): UICollectionViewFocusUpdateContext; // inherited from NSObject static new(): UICollectionViewFocusUpdateContext; // inherited from NSObject readonly nextFocusedIndexPath: NSIndexPath; readonly previouslyFocusedIndexPath: NSIndexPath; } declare class UICollectionViewLayout extends NSObject implements NSCoding { static alloc(): UICollectionViewLayout; // inherited from NSObject static new(): UICollectionViewLayout; // inherited from NSObject readonly collectionView: UICollectionView; readonly collectionViewContentSize: CGSize; static readonly invalidationContextClass: typeof NSObject; static readonly layoutAttributesClass: typeof NSObject; constructor(o: { coder: NSCoder; }); // inherited from NSCoding encodeWithCoder(aCoder: NSCoder): void; finalLayoutAttributesForDisappearingDecorationElementOfKindAtIndexPath(elementKind: string, decorationIndexPath: NSIndexPath): UICollectionViewLayoutAttributes; finalLayoutAttributesForDisappearingItemAtIndexPath(itemIndexPath: NSIndexPath): UICollectionViewLayoutAttributes; finalLayoutAttributesForDisappearingSupplementaryElementOfKindAtIndexPath(elementKind: string, elementIndexPath: NSIndexPath): UICollectionViewLayoutAttributes; finalizeAnimatedBoundsChange(): void; finalizeCollectionViewUpdates(): void; finalizeLayoutTransition(): void; indexPathsToDeleteForDecorationViewOfKind(elementKind: string): NSArray; indexPathsToDeleteForSupplementaryViewOfKind(elementKind: string): NSArray; indexPathsToInsertForDecorationViewOfKind(elementKind: string): NSArray; indexPathsToInsertForSupplementaryViewOfKind(elementKind: string): NSArray; initWithCoder(aDecoder: NSCoder): this; initialLayoutAttributesForAppearingDecorationElementOfKindAtIndexPath(elementKind: string, decorationIndexPath: NSIndexPath): UICollectionViewLayoutAttributes; initialLayoutAttributesForAppearingItemAtIndexPath(itemIndexPath: NSIndexPath): UICollectionViewLayoutAttributes; initialLayoutAttributesForAppearingSupplementaryElementOfKindAtIndexPath(elementKind: string, elementIndexPath: NSIndexPath): UICollectionViewLayoutAttributes; invalidateLayout(): void; invalidateLayoutWithContext(context: UICollectionViewLayoutInvalidationContext): void; invalidationContextForBoundsChange(newBounds: CGRect): UICollectionViewLayoutInvalidationContext; invalidationContextForEndingInteractiveMovementOfItemsToFinalIndexPathsPreviousIndexPathsMovementCancelled(indexPaths: NSArray, previousIndexPaths: NSArray, movementCancelled: boolean): UICollectionViewLayoutInvalidationContext; invalidationContextForInteractivelyMovingItemsWithTargetPositionPreviousIndexPathsPreviousPosition(targetIndexPaths: NSArray, targetPosition: CGPoint, previousIndexPaths: NSArray, previousPosition: CGPoint): UICollectionViewLayoutInvalidationContext; invalidationContextForPreferredLayoutAttributesWithOriginalAttributes(preferredAttributes: UICollectionViewLayoutAttributes, originalAttributes: UICollectionViewLayoutAttributes): UICollectionViewLayoutInvalidationContext; layoutAttributesForDecorationViewOfKindAtIndexPath(elementKind: string, indexPath: NSIndexPath): UICollectionViewLayoutAttributes; layoutAttributesForElementsInRect(rect: CGRect): NSArray; layoutAttributesForInteractivelyMovingItemAtIndexPathWithTargetPosition(indexPath: NSIndexPath, position: CGPoint): UICollectionViewLayoutAttributes; layoutAttributesForItemAtIndexPath(indexPath: NSIndexPath): UICollectionViewLayoutAttributes; layoutAttributesForSupplementaryViewOfKindAtIndexPath(elementKind: string, indexPath: NSIndexPath): UICollectionViewLayoutAttributes; prepareForAnimatedBoundsChange(oldBounds: CGRect): void; prepareForCollectionViewUpdates(updateItems: NSArray): void; prepareForTransitionFromLayout(oldLayout: UICollectionViewLayout): void; prepareForTransitionToLayout(newLayout: UICollectionViewLayout): void; prepareLayout(): void; registerClassForDecorationViewOfKind(viewClass: typeof NSObject, elementKind: string): void; registerNibForDecorationViewOfKind(nib: UINib, elementKind: string): void; shouldInvalidateLayoutForBoundsChange(newBounds: CGRect): boolean; shouldInvalidateLayoutForPreferredLayoutAttributesWithOriginalAttributes(preferredAttributes: UICollectionViewLayoutAttributes, originalAttributes: UICollectionViewLayoutAttributes): boolean; targetContentOffsetForProposedContentOffset(proposedContentOffset: CGPoint): CGPoint; targetContentOffsetForProposedContentOffsetWithScrollingVelocity(proposedContentOffset: CGPoint, velocity: CGPoint): CGPoint; targetIndexPathForInteractivelyMovingItemWithPosition(previousIndexPath: NSIndexPath, position: CGPoint): NSIndexPath; } declare class UICollectionViewLayoutAttributes extends NSObject implements NSCopying, UIDynamicItem { static alloc(): UICollectionViewLayoutAttributes; // inherited from NSObject static layoutAttributesForCellWithIndexPath(indexPath: NSIndexPath): UICollectionViewLayoutAttributes; static layoutAttributesForDecorationViewOfKindWithIndexPath(decorationViewKind: string, indexPath: NSIndexPath): UICollectionViewLayoutAttributes; static layoutAttributesForSupplementaryViewOfKindWithIndexPath(elementKind: string, indexPath: NSIndexPath): UICollectionViewLayoutAttributes; static new(): UICollectionViewLayoutAttributes; // inherited from NSObject alpha: number; bounds: CGRect; frame: CGRect; hidden: boolean; indexPath: NSIndexPath; readonly representedElementCategory: UICollectionElementCategory; readonly representedElementKind: string; size: CGSize; transform3D: CATransform3D; zIndex: number; center: CGPoint; // inherited from UIDynamicItem readonly collisionBoundingPath: UIBezierPath; // inherited from UIDynamicItem readonly collisionBoundsType: UIDynamicItemCollisionBoundsType; // inherited from UIDynamicItem readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol transform: CGAffineTransform; // inherited from UIDynamicItem readonly // inherited from NSObjectProtocol class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class UICollectionViewLayoutInvalidationContext extends NSObject { static alloc(): UICollectionViewLayoutInvalidationContext; // inherited from NSObject static new(): UICollectionViewLayoutInvalidationContext; // inherited from NSObject contentOffsetAdjustment: CGPoint; contentSizeAdjustment: CGSize; readonly interactiveMovementTarget: CGPoint; readonly invalidateDataSourceCounts: boolean; readonly invalidateEverything: boolean; readonly invalidatedDecorationIndexPaths: NSDictionary>; readonly invalidatedItemIndexPaths: NSArray; readonly invalidatedSupplementaryIndexPaths: NSDictionary>; readonly previousIndexPathsForInteractivelyMovingItems: NSArray; readonly targetIndexPathsForInteractivelyMovingItems: NSArray; invalidateDecorationElementsOfKindAtIndexPaths(elementKind: string, indexPaths: NSArray): void; invalidateItemsAtIndexPaths(indexPaths: NSArray): void; invalidateSupplementaryElementsOfKindAtIndexPaths(elementKind: string, indexPaths: NSArray): void; } declare const enum UICollectionViewScrollDirection { Vertical = 0, Horizontal = 1 } declare const enum UICollectionViewScrollPosition { None = 0, Top = 1, CenteredVertically = 2, Bottom = 4, Left = 8, CenteredHorizontally = 16, Right = 32 } declare class UICollectionViewTransitionLayout extends UICollectionViewLayout { static alloc(): UICollectionViewTransitionLayout; // inherited from NSObject static new(): UICollectionViewTransitionLayout; // inherited from NSObject readonly currentLayout: UICollectionViewLayout; readonly nextLayout: UICollectionViewLayout; transitionProgress: number; constructor(o: { currentLayout: UICollectionViewLayout; nextLayout: UICollectionViewLayout; }); initWithCurrentLayoutNextLayout(currentLayout: UICollectionViewLayout, newLayout: UICollectionViewLayout): this; updateValueForAnimatedKey(value: number, key: string): void; valueForAnimatedKey(key: string): number; } declare class UICollectionViewUpdateItem extends NSObject { static alloc(): UICollectionViewUpdateItem; // inherited from NSObject static new(): UICollectionViewUpdateItem; // inherited from NSObject readonly indexPathAfterUpdate: NSIndexPath; readonly indexPathBeforeUpdate: NSIndexPath; readonly updateAction: UICollectionUpdateAction; } declare class UICollisionBehavior extends UIDynamicBehavior { static alloc(): UICollisionBehavior; // inherited from NSObject static new(): UICollisionBehavior; // inherited from NSObject readonly boundaryIdentifiers: NSArray; collisionDelegate: UICollisionBehaviorDelegate; collisionMode: UICollisionBehaviorMode; readonly items: NSArray; translatesReferenceBoundsIntoBoundary: boolean; constructor(o: { items: NSArray; }); addBoundaryWithIdentifierForPath(identifier: any, bezierPath: UIBezierPath): void; addBoundaryWithIdentifierFromPointToPoint(identifier: any, p1: CGPoint, p2: CGPoint): void; addItem(item: UIDynamicItem): void; boundaryWithIdentifier(identifier: any): UIBezierPath; initWithItems(items: NSArray): this; removeAllBoundaries(): void; removeBoundaryWithIdentifier(identifier: any): void; removeItem(item: UIDynamicItem): void; setTranslatesReferenceBoundsIntoBoundaryWithInsets(insets: UIEdgeInsets): void; } interface UICollisionBehaviorDelegate extends NSObjectProtocol { collisionBehaviorBeganContactForItemWithBoundaryIdentifierAtPoint?(behavior: UICollisionBehavior, item: UIDynamicItem, identifier: any, p: CGPoint): void; collisionBehaviorBeganContactForItemWithItemAtPoint?(behavior: UICollisionBehavior, item1: UIDynamicItem, item2: UIDynamicItem, p: CGPoint): void; collisionBehaviorEndedContactForItemWithBoundaryIdentifier?(behavior: UICollisionBehavior, item: UIDynamicItem, identifier: any): void; collisionBehaviorEndedContactForItemWithItem?(behavior: UICollisionBehavior, item1: UIDynamicItem, item2: UIDynamicItem): void; } declare var UICollisionBehaviorDelegate: { prototype: UICollisionBehaviorDelegate; }; declare const enum UICollisionBehaviorMode { Items = 1, Boundaries = 2, Everything = 4294967295 } declare class UIColor extends NSObject implements NSCopying, NSSecureCoding { static alloc(): UIColor; // inherited from NSObject static colorWithCGColor(cgColor: any): UIColor; static colorWithCIColor(ciColor: CIColor): UIColor; static colorWithDisplayP3RedGreenBlueAlpha(displayP3Red: number, green: number, blue: number, alpha: number): UIColor; static colorWithHueSaturationBrightnessAlpha(hue: number, saturation: number, brightness: number, alpha: number): UIColor; static colorWithPatternImage(image: UIImage): UIColor; static colorWithRedGreenBlueAlpha(red: number, green: number, blue: number, alpha: number): UIColor; static colorWithWhiteAlpha(white: number, alpha: number): UIColor; static new(): UIColor; // inherited from NSObject readonly CGColor: any; readonly CIColor: CIColor; static readonly blackColor: UIColor; static readonly blueColor: UIColor; static readonly brownColor: UIColor; static readonly clearColor: UIColor; static readonly cyanColor: UIColor; static readonly darkGrayColor: UIColor; static readonly darkTextColor: UIColor; static readonly grayColor: UIColor; static readonly greenColor: UIColor; static readonly groupTableViewBackgroundColor: UIColor; static readonly lightGrayColor: UIColor; static readonly lightTextColor: UIColor; static readonly magentaColor: UIColor; static readonly orangeColor: UIColor; static readonly purpleColor: UIColor; static readonly redColor: UIColor; static readonly scrollViewTexturedBackgroundColor: UIColor; static readonly underPageBackgroundColor: UIColor; static readonly viewFlipsideBackgroundColor: UIColor; static readonly whiteColor: UIColor; static readonly yellowColor: UIColor; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { CGColor: any; }); constructor(o: { CIColor: CIColor; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { displayP3Red: number; green: number; blue: number; alpha: number; }); constructor(o: { hue: number; saturation: number; brightness: number; alpha: number; }); constructor(o: { patternImage: UIImage; }); constructor(o: { red: number; green: number; blue: number; alpha: number; }); constructor(o: { white: number; alpha: number; }); colorWithAlphaComponent(alpha: number): UIColor; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; getHueSaturationBrightnessAlpha(hue: interop.Pointer | interop.Reference, saturation: interop.Pointer | interop.Reference, brightness: interop.Pointer | interop.Reference, alpha: interop.Pointer | interop.Reference): boolean; getRedGreenBlueAlpha(red: interop.Pointer | interop.Reference, green: interop.Pointer | interop.Reference, blue: interop.Pointer | interop.Reference, alpha: interop.Pointer | interop.Reference): boolean; getWhiteAlpha(white: interop.Pointer | interop.Reference, alpha: interop.Pointer | interop.Reference): boolean; initWithCGColor(cgColor: any): this; initWithCIColor(ciColor: CIColor): this; initWithCoder(aDecoder: NSCoder): this; initWithDisplayP3RedGreenBlueAlpha(displayP3Red: number, green: number, blue: number, alpha: number): this; initWithHueSaturationBrightnessAlpha(hue: number, saturation: number, brightness: number, alpha: number): this; initWithPatternImage(image: UIImage): this; initWithRedGreenBlueAlpha(red: number, green: number, blue: number, alpha: number): this; initWithWhiteAlpha(white: number, alpha: number): this; set(): void; setFill(): void; setStroke(): void; } interface UIContentContainer extends NSObjectProtocol { preferredContentSize: CGSize; preferredContentSizeDidChangeForChildContentContainer(container: UIContentContainer): void; sizeForChildContentContainerWithParentContainerSize(container: UIContentContainer, parentSize: CGSize): CGSize; systemLayoutFittingSizeDidChangeForChildContentContainer(container: UIContentContainer): void; viewWillTransitionToSizeWithTransitionCoordinator(size: CGSize, coordinator: UIViewControllerTransitionCoordinator): void; willTransitionToTraitCollectionWithTransitionCoordinator(newCollection: UITraitCollection, coordinator: UIViewControllerTransitionCoordinator): void; } declare var UIContentContainer: { prototype: UIContentContainer; }; declare var UIContentSizeCategoryAccessibilityExtraExtraExtraLarge: string; declare var UIContentSizeCategoryAccessibilityExtraExtraLarge: string; declare var UIContentSizeCategoryAccessibilityExtraLarge: string; declare var UIContentSizeCategoryAccessibilityLarge: string; declare var UIContentSizeCategoryAccessibilityMedium: string; interface UIContentSizeCategoryAdjusting extends NSObjectProtocol { adjustsFontForContentSizeCategory: boolean; } declare var UIContentSizeCategoryAdjusting: { prototype: UIContentSizeCategoryAdjusting; }; declare var UIContentSizeCategoryDidChangeNotification: string; declare var UIContentSizeCategoryExtraExtraExtraLarge: string; declare var UIContentSizeCategoryExtraExtraLarge: string; declare var UIContentSizeCategoryExtraLarge: string; declare var UIContentSizeCategoryExtraSmall: string; declare var UIContentSizeCategoryLarge: string; declare var UIContentSizeCategoryMedium: string; declare var UIContentSizeCategoryNewValueKey: string; declare var UIContentSizeCategorySmall: string; declare var UIContentSizeCategoryUnspecified: string; declare class UIControl extends UIView { static alloc(): UIControl; // inherited from NSObject static appearance(): UIControl; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIControl; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIControl; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIControl; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIControl; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIControl; // inherited from UIAppearance static new(): UIControl; // inherited from NSObject readonly allControlEvents: UIControlEvents; readonly allTargets: NSSet; contentHorizontalAlignment: UIControlContentHorizontalAlignment; contentVerticalAlignment: UIControlContentVerticalAlignment; enabled: boolean; highlighted: boolean; selected: boolean; readonly state: UIControlState; readonly touchInside: boolean; readonly tracking: boolean; actionsForTargetForControlEvent(target: any, controlEvent: UIControlEvents): NSArray; addTargetActionForControlEvents(target: any, action: string, controlEvents: UIControlEvents): void; beginTrackingWithTouchWithEvent(touch: UITouch, event: UIEvent): boolean; cancelTrackingWithEvent(event: UIEvent): void; continueTrackingWithTouchWithEvent(touch: UITouch, event: UIEvent): boolean; endTrackingWithTouchWithEvent(touch: UITouch, event: UIEvent): void; removeTargetActionForControlEvents(target: any, action: string, controlEvents: UIControlEvents): void; sendActionToForEvent(action: string, target: any, event: UIEvent): void; sendActionsForControlEvents(controlEvents: UIControlEvents): void; } declare const enum UIControlContentHorizontalAlignment { Center = 0, Left = 1, Right = 2, Fill = 3 } declare const enum UIControlContentVerticalAlignment { Center = 0, Top = 1, Bottom = 2, Fill = 3 } declare const enum UIControlEvents { TouchDown = 1, TouchDownRepeat = 2, TouchDragInside = 4, TouchDragOutside = 8, TouchDragEnter = 16, TouchDragExit = 32, TouchUpInside = 64, TouchUpOutside = 128, TouchCancel = 256, ValueChanged = 4096, PrimaryActionTriggered = 8192, EditingDidBegin = 65536, EditingChanged = 131072, EditingDidEnd = 262144, EditingDidEndOnExit = 524288, AllTouchEvents = 4095, AllEditingEvents = 983040, ApplicationReserved = 251658240, SystemReserved = 4026531840, AllEvents = 4294967295 } declare const enum UIControlState { Normal = 0, Highlighted = 1, Disabled = 2, Selected = 4, Focused = 8, Application = 16711680, Reserved = 4278190080 } interface UICoordinateSpace extends NSObjectProtocol { bounds: CGRect; convertPointFromCoordinateSpace(point: CGPoint, coordinateSpace: UICoordinateSpace): CGPoint; convertPointToCoordinateSpace(point: CGPoint, coordinateSpace: UICoordinateSpace): CGPoint; convertRectFromCoordinateSpace(rect: CGRect, coordinateSpace: UICoordinateSpace): CGRect; convertRectToCoordinateSpace(rect: CGRect, coordinateSpace: UICoordinateSpace): CGRect; } declare var UICoordinateSpace: { prototype: UICoordinateSpace; }; declare class UICubicTimingParameters extends NSObject implements UITimingCurveProvider { static alloc(): UICubicTimingParameters; // inherited from NSObject static new(): UICubicTimingParameters; // inherited from NSObject readonly animationCurve: UIViewAnimationCurve; readonly controlPoint1: CGPoint; readonly controlPoint2: CGPoint; readonly cubicTimingParameters: UICubicTimingParameters; // inherited from UITimingCurveProvider readonly springTimingParameters: UISpringTimingParameters; // inherited from UITimingCurveProvider readonly timingCurveType: UITimingCurveType; // inherited from UITimingCurveProvider constructor(o: { animationCurve: UIViewAnimationCurve; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { controlPoint1: CGPoint; controlPoint2: CGPoint; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithAnimationCurve(curve: UIViewAnimationCurve): this; initWithCoder(aDecoder: NSCoder): this; initWithControlPoint1ControlPoint2(point1: CGPoint, point2: CGPoint): this; } declare const enum UIDataDetectorTypes { PhoneNumber = 1, Link = 2, Address = 4, CalendarEvent = 8, ShipmentTrackingNumber = 16, FlightNumber = 32, LookupSuggestion = 64, None = 0, All = 4294967295 } interface UIDataSourceModelAssociation { indexPathForElementWithModelIdentifierInView(identifier: string, view: UIView): NSIndexPath; modelIdentifierForElementAtIndexPathInView(idx: NSIndexPath, view: UIView): string; } declare var UIDataSourceModelAssociation: { prototype: UIDataSourceModelAssociation; }; declare class UIDatePicker extends UIControl implements NSCoding { static alloc(): UIDatePicker; // inherited from NSObject static appearance(): UIDatePicker; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIDatePicker; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIDatePicker; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIDatePicker; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIDatePicker; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIDatePicker; // inherited from UIAppearance static new(): UIDatePicker; // inherited from NSObject calendar: NSCalendar; countDownDuration: number; date: Date; datePickerMode: UIDatePickerMode; locale: NSLocale; maximumDate: Date; minimumDate: Date; minuteInterval: number; timeZone: NSTimeZone; constructor(o: { coder: NSCoder; }); // inherited from NSCoding encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; setDateAnimated(date: Date, animated: boolean): void; } declare const enum UIDatePickerMode { Time = 0, Date = 1, DateAndTime = 2, CountDownTimer = 3 } declare class UIDevice extends NSObject { static alloc(): UIDevice; // inherited from NSObject static new(): UIDevice; // inherited from NSObject readonly batteryLevel: number; batteryMonitoringEnabled: boolean; readonly batteryState: UIDeviceBatteryState; readonly generatesDeviceOrientationNotifications: boolean; readonly identifierForVendor: NSUUID; readonly localizedModel: string; readonly model: string; readonly multitaskingSupported: boolean; readonly name: string; readonly orientation: UIDeviceOrientation; proximityMonitoringEnabled: boolean; readonly proximityState: boolean; readonly systemName: string; readonly systemVersion: string; readonly userInterfaceIdiom: UIUserInterfaceIdiom; static readonly currentDevice: UIDevice; beginGeneratingDeviceOrientationNotifications(): void; endGeneratingDeviceOrientationNotifications(): void; playInputClick(): void; } declare var UIDeviceBatteryLevelDidChangeNotification: string; declare const enum UIDeviceBatteryState { Unknown = 0, Unplugged = 1, Charging = 2, Full = 3 } declare var UIDeviceBatteryStateDidChangeNotification: string; declare const enum UIDeviceOrientation { Unknown = 0, Portrait = 1, PortraitUpsideDown = 2, LandscapeLeft = 3, LandscapeRight = 4, FaceUp = 5, FaceDown = 6 } declare var UIDeviceOrientationDidChangeNotification: string; declare var UIDeviceProximityStateDidChangeNotification: string; declare class UIDictationPhrase extends NSObject { static alloc(): UIDictationPhrase; // inherited from NSObject static new(): UIDictationPhrase; // inherited from NSObject readonly alternativeInterpretations: NSArray; readonly text: string; } declare const enum UIDisplayGamut { Unspecified = -1, SRGB = 0, P3 = 1 } declare class UIDocument extends NSObject implements NSFilePresenter, NSProgressReporting { static alloc(): UIDocument; // inherited from NSObject static new(): UIDocument; // inherited from NSObject readonly documentState: UIDocumentState; fileModificationDate: Date; readonly fileType: string; readonly fileURL: NSURL; readonly hasUnsavedChanges: boolean; readonly localizedName: string; readonly savingFileType: string; undoManager: NSUndoManager; userActivity: NSUserActivity; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly presentedItemOperationQueue: NSOperationQueue; // inherited from NSFilePresenter readonly presentedItemURL: NSURL; // inherited from NSFilePresenter readonly progress: NSProgress; // inherited from NSProgressReporting readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { fileURL: NSURL; }); accommodatePresentedItemDeletionWithCompletionHandler(completionHandler: (p1: NSError) => void): void; accommodatePresentedSubitemDeletionAtURLCompletionHandler(url: NSURL, completionHandler: (p1: NSError) => void): void; autosaveWithCompletionHandler(completionHandler: (p1: boolean) => void): void; changeCountTokenForSaveOperation(saveOperation: UIDocumentSaveOperation): any; class(): typeof NSObject; closeWithCompletionHandler(completionHandler: (p1: boolean) => void): void; conformsToProtocol(aProtocol: any /* Protocol */): boolean; contentsForTypeError(typeName: string): any; disableEditing(): void; enableEditing(): void; fileAttributesToWriteToURLForSaveOperationError(url: NSURL, saveOperation: UIDocumentSaveOperation): NSDictionary; fileNameExtensionForTypeSaveOperation(typeName: string, saveOperation: UIDocumentSaveOperation): string; finishedHandlingErrorRecovered(error: NSError, recovered: boolean): void; handleErrorUserInteractionPermitted(error: NSError, userInteractionPermitted: boolean): void; initWithFileURL(url: NSURL): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; loadFromContentsOfTypeError(contents: any, typeName: string): boolean; openWithCompletionHandler(completionHandler: (p1: boolean) => void): void; performAsynchronousFileAccessUsingBlock(block: () => void): void; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; presentedItemDidChange(): void; presentedItemDidGainVersion(version: NSFileVersion): void; presentedItemDidLoseVersion(version: NSFileVersion): void; presentedItemDidMoveToURL(newURL: NSURL): void; presentedItemDidResolveConflictVersion(version: NSFileVersion): void; presentedSubitemAtURLDidGainVersion(url: NSURL, version: NSFileVersion): void; presentedSubitemAtURLDidLoseVersion(url: NSURL, version: NSFileVersion): void; presentedSubitemAtURLDidMoveToURL(oldURL: NSURL, newURL: NSURL): void; presentedSubitemAtURLDidResolveConflictVersion(url: NSURL, version: NSFileVersion): void; presentedSubitemDidAppearAtURL(url: NSURL): void; presentedSubitemDidChangeAtURL(url: NSURL): void; readFromURLError(url: NSURL): boolean; relinquishPresentedItemToReader(reader: (p1: () => void) => void): void; relinquishPresentedItemToWriter(writer: (p1: () => void) => void): void; respondsToSelector(aSelector: string): boolean; restoreUserActivityState(userActivity: NSUserActivity): void; retainCount(): number; revertToContentsOfURLCompletionHandler(url: NSURL, completionHandler: (p1: boolean) => void): void; savePresentedItemChangesWithCompletionHandler(completionHandler: (p1: NSError) => void): void; saveToURLForSaveOperationCompletionHandler(url: NSURL, saveOperation: UIDocumentSaveOperation, completionHandler: (p1: boolean) => void): void; self(): this; updateChangeCount(change: UIDocumentChangeKind): void; updateChangeCountWithTokenForSaveOperation(changeCountToken: any, saveOperation: UIDocumentSaveOperation): void; updateUserActivityState(userActivity: NSUserActivity): void; userInteractionNoLongerPermittedForError(error: NSError): void; writeContentsAndAttributesSafelyToURLForSaveOperationError(contents: any, additionalFileAttributes: NSDictionary, url: NSURL, saveOperation: UIDocumentSaveOperation): boolean; writeContentsToURLForSaveOperationOriginalContentsURLError(contents: any, url: NSURL, saveOperation: UIDocumentSaveOperation, originalContentsURL: NSURL): boolean; } declare const enum UIDocumentChangeKind { Done = 0, Undone = 1, Redone = 2, Cleared = 3 } declare class UIDocumentInteractionController extends NSObject implements UIActionSheetDelegate { static alloc(): UIDocumentInteractionController; // inherited from NSObject static interactionControllerWithURL(url: NSURL): UIDocumentInteractionController; static new(): UIDocumentInteractionController; // inherited from NSObject URL: NSURL; UTI: string; annotation: any; delegate: UIDocumentInteractionControllerDelegate; readonly gestureRecognizers: NSArray; readonly icons: NSArray; name: string; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol actionSheetCancel(actionSheet: UIActionSheet): void; actionSheetClickedButtonAtIndex(actionSheet: UIActionSheet, buttonIndex: number): void; actionSheetDidDismissWithButtonIndex(actionSheet: UIActionSheet, buttonIndex: number): void; actionSheetWillDismissWithButtonIndex(actionSheet: UIActionSheet, buttonIndex: number): void; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; didPresentActionSheet(actionSheet: UIActionSheet): void; dismissMenuAnimated(animated: boolean): void; dismissPreviewAnimated(animated: boolean): void; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; presentOpenInMenuFromBarButtonItemAnimated(item: UIBarButtonItem, animated: boolean): boolean; presentOpenInMenuFromRectInViewAnimated(rect: CGRect, view: UIView, animated: boolean): boolean; presentOptionsMenuFromBarButtonItemAnimated(item: UIBarButtonItem, animated: boolean): boolean; presentOptionsMenuFromRectInViewAnimated(rect: CGRect, view: UIView, animated: boolean): boolean; presentPreviewAnimated(animated: boolean): boolean; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; willPresentActionSheet(actionSheet: UIActionSheet): void; } interface UIDocumentInteractionControllerDelegate extends NSObjectProtocol { documentInteractionControllerCanPerformAction?(controller: UIDocumentInteractionController, action: string): boolean; documentInteractionControllerDidDismissOpenInMenu?(controller: UIDocumentInteractionController): void; documentInteractionControllerDidDismissOptionsMenu?(controller: UIDocumentInteractionController): void; documentInteractionControllerDidEndPreview?(controller: UIDocumentInteractionController): void; documentInteractionControllerDidEndSendingToApplication?(controller: UIDocumentInteractionController, application: string): void; documentInteractionControllerPerformAction?(controller: UIDocumentInteractionController, action: string): boolean; documentInteractionControllerRectForPreview?(controller: UIDocumentInteractionController): CGRect; documentInteractionControllerViewControllerForPreview?(controller: UIDocumentInteractionController): UIViewController; documentInteractionControllerViewForPreview?(controller: UIDocumentInteractionController): UIView; documentInteractionControllerWillBeginPreview?(controller: UIDocumentInteractionController): void; documentInteractionControllerWillBeginSendingToApplication?(controller: UIDocumentInteractionController, application: string): void; documentInteractionControllerWillPresentOpenInMenu?(controller: UIDocumentInteractionController): void; documentInteractionControllerWillPresentOptionsMenu?(controller: UIDocumentInteractionController): void; } declare var UIDocumentInteractionControllerDelegate: { prototype: UIDocumentInteractionControllerDelegate; }; interface UIDocumentMenuDelegate extends NSObjectProtocol { documentMenuDidPickDocumentPicker(documentMenu: UIDocumentMenuViewController, documentPicker: UIDocumentPickerViewController): void; documentMenuWasCancelled?(documentMenu: UIDocumentMenuViewController): void; } declare var UIDocumentMenuDelegate: { prototype: UIDocumentMenuDelegate; }; declare const enum UIDocumentMenuOrder { First = 0, Last = 1 } declare class UIDocumentMenuViewController extends UIViewController { static alloc(): UIDocumentMenuViewController; // inherited from NSObject static new(): UIDocumentMenuViewController; // inherited from NSObject delegate: UIDocumentMenuDelegate; constructor(o: { documentTypes: NSArray; inMode: UIDocumentPickerMode; }); constructor(o: { URL: NSURL; inMode: UIDocumentPickerMode; }); addOptionWithTitleImageOrderHandler(title: string, image: UIImage, order: UIDocumentMenuOrder, handler: () => void): void; initWithDocumentTypesInMode(allowedUTIs: NSArray, mode: UIDocumentPickerMode): this; initWithURLInMode(url: NSURL, mode: UIDocumentPickerMode): this; } interface UIDocumentPickerDelegate extends NSObjectProtocol { documentPickerDidPickDocumentAtURL(controller: UIDocumentPickerViewController, url: NSURL): void; documentPickerWasCancelled?(controller: UIDocumentPickerViewController): void; } declare var UIDocumentPickerDelegate: { prototype: UIDocumentPickerDelegate; }; declare class UIDocumentPickerExtensionViewController extends UIViewController { static alloc(): UIDocumentPickerExtensionViewController; // inherited from NSObject static new(): UIDocumentPickerExtensionViewController; // inherited from NSObject readonly documentPickerMode: UIDocumentPickerMode; readonly documentStorageURL: NSURL; readonly originalURL: NSURL; readonly providerIdentifier: string; readonly validTypes: NSArray; dismissGrantingAccessToURL(url: NSURL): void; prepareForPresentationInMode(mode: UIDocumentPickerMode): void; } declare const enum UIDocumentPickerMode { Import = 0, Open = 1, ExportToService = 2, MoveToService = 3 } declare class UIDocumentPickerViewController extends UIViewController { static alloc(): UIDocumentPickerViewController; // inherited from NSObject static new(): UIDocumentPickerViewController; // inherited from NSObject delegate: UIDocumentPickerDelegate; readonly documentPickerMode: UIDocumentPickerMode; constructor(o: { documentTypes: NSArray; inMode: UIDocumentPickerMode; }); constructor(o: { URL: NSURL; inMode: UIDocumentPickerMode; }); initWithDocumentTypesInMode(allowedUTIs: NSArray, mode: UIDocumentPickerMode): this; initWithURLInMode(url: NSURL, mode: UIDocumentPickerMode): this; } declare const enum UIDocumentSaveOperation { ForCreating = 0, ForOverwriting = 1 } declare const enum UIDocumentState { Normal = 0, Closed = 1, InConflict = 2, SavingError = 4, EditingDisabled = 8, ProgressAvailable = 16 } declare var UIDocumentStateChangedNotification: string; declare class UIDynamicAnimator extends NSObject { static alloc(): UIDynamicAnimator; // inherited from NSObject static new(): UIDynamicAnimator; // inherited from NSObject readonly behaviors: NSArray; delegate: UIDynamicAnimatorDelegate; readonly elapsedTime: number; readonly referenceView: UIView; readonly running: boolean; constructor(o: { collectionViewLayout: UICollectionViewLayout; }); constructor(o: { referenceView: UIView; }); addBehavior(behavior: UIDynamicBehavior): void; initWithCollectionViewLayout(layout: UICollectionViewLayout): this; initWithReferenceView(view: UIView): this; itemsInRect(rect: CGRect): NSArray; layoutAttributesForCellAtIndexPath(indexPath: NSIndexPath): UICollectionViewLayoutAttributes; layoutAttributesForDecorationViewOfKindAtIndexPath(decorationViewKind: string, indexPath: NSIndexPath): UICollectionViewLayoutAttributes; layoutAttributesForSupplementaryViewOfKindAtIndexPath(kind: string, indexPath: NSIndexPath): UICollectionViewLayoutAttributes; removeAllBehaviors(): void; removeBehavior(behavior: UIDynamicBehavior): void; updateItemUsingCurrentState(item: UIDynamicItem): void; } interface UIDynamicAnimatorDelegate extends NSObjectProtocol { dynamicAnimatorDidPause?(animator: UIDynamicAnimator): void; dynamicAnimatorWillResume?(animator: UIDynamicAnimator): void; } declare var UIDynamicAnimatorDelegate: { prototype: UIDynamicAnimatorDelegate; }; declare class UIDynamicBehavior extends NSObject { static alloc(): UIDynamicBehavior; // inherited from NSObject static new(): UIDynamicBehavior; // inherited from NSObject action: () => void; readonly childBehaviors: NSArray; readonly dynamicAnimator: UIDynamicAnimator; addChildBehavior(behavior: UIDynamicBehavior): void; removeChildBehavior(behavior: UIDynamicBehavior): void; willMoveToAnimator(dynamicAnimator: UIDynamicAnimator): void; } interface UIDynamicItem extends NSObjectProtocol { bounds: CGRect; center: CGPoint; collisionBoundingPath?: UIBezierPath; collisionBoundsType?: UIDynamicItemCollisionBoundsType; transform: CGAffineTransform; } declare var UIDynamicItem: { prototype: UIDynamicItem; }; declare class UIDynamicItemBehavior extends UIDynamicBehavior { static alloc(): UIDynamicItemBehavior; // inherited from NSObject static new(): UIDynamicItemBehavior; // inherited from NSObject allowsRotation: boolean; anchored: boolean; angularResistance: number; charge: number; density: number; elasticity: number; friction: number; readonly items: NSArray; resistance: number; constructor(o: { items: NSArray; }); addAngularVelocityForItem(velocity: number, item: UIDynamicItem): void; addItem(item: UIDynamicItem): void; addLinearVelocityForItem(velocity: CGPoint, item: UIDynamicItem): void; angularVelocityForItem(item: UIDynamicItem): number; initWithItems(items: NSArray): this; linearVelocityForItem(item: UIDynamicItem): CGPoint; removeItem(item: UIDynamicItem): void; } declare const enum UIDynamicItemCollisionBoundsType { Rectangle = 0, Ellipse = 1, Path = 2 } declare class UIDynamicItemGroup extends NSObject implements UIDynamicItem { static alloc(): UIDynamicItemGroup; // inherited from NSObject static new(): UIDynamicItemGroup; // inherited from NSObject readonly items: NSArray; readonly bounds: CGRect; // inherited from UIDynamicItem center: CGPoint; // inherited from UIDynamicItem readonly collisionBoundingPath: UIBezierPath; // inherited from UIDynamicItem readonly collisionBoundsType: UIDynamicItemCollisionBoundsType; // inherited from UIDynamicItem readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol transform: CGAffineTransform; // inherited from UIDynamicItem readonly // inherited from NSObjectProtocol constructor(o: { items: NSArray; }); class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; initWithItems(items: NSArray): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } interface UIEdgeInsets { top: number; left: number; bottom: number; right: number; } declare var UIEdgeInsets: interop.StructType; declare function UIEdgeInsetsFromString(string: string): UIEdgeInsets; declare var UIEdgeInsetsZero: UIEdgeInsets; declare class UIEvent extends NSObject { static alloc(): UIEvent; // inherited from NSObject static new(): UIEvent; // inherited from NSObject readonly allTouches: NSSet; readonly subtype: UIEventSubtype; readonly timestamp: number; readonly type: UIEventType; coalescedTouchesForTouch(touch: UITouch): NSArray; predictedTouchesForTouch(touch: UITouch): NSArray; touchesForGestureRecognizer(gesture: UIGestureRecognizer): NSSet; touchesForView(view: UIView): NSSet; touchesForWindow(window: UIWindow): NSSet; } declare const enum UIEventSubtype { None = 0, MotionShake = 1, RemoteControlPlay = 100, RemoteControlPause = 101, RemoteControlStop = 102, RemoteControlTogglePlayPause = 103, RemoteControlNextTrack = 104, RemoteControlPreviousTrack = 105, RemoteControlBeginSeekingBackward = 106, RemoteControlEndSeekingBackward = 107, RemoteControlBeginSeekingForward = 108, RemoteControlEndSeekingForward = 109 } declare const enum UIEventType { Touches = 0, Motion = 1, RemoteControl = 2, Presses = 3 } declare class UIFeedbackGenerator extends NSObject { static alloc(): UIFeedbackGenerator; // inherited from NSObject static new(): UIFeedbackGenerator; // inherited from NSObject prepare(): void; } declare class UIFieldBehavior extends UIDynamicBehavior { static alloc(): UIFieldBehavior; // inherited from NSObject static dragField(): UIFieldBehavior; static electricField(): UIFieldBehavior; static fieldWithEvaluationBlock(block: (p1: UIFieldBehavior, p2: CGPoint, p3: CGVector, p4: number, p5: number, p6: number) => CGVector): UIFieldBehavior; static linearGravityFieldWithVector(direction: CGVector): UIFieldBehavior; static magneticField(): UIFieldBehavior; static new(): UIFieldBehavior; // inherited from NSObject static noiseFieldWithSmoothnessAnimationSpeed(smoothness: number, speed: number): UIFieldBehavior; static radialGravityFieldWithPosition(position: CGPoint): UIFieldBehavior; static springField(): UIFieldBehavior; static turbulenceFieldWithSmoothnessAnimationSpeed(smoothness: number, speed: number): UIFieldBehavior; static velocityFieldWithVector(direction: CGVector): UIFieldBehavior; static vortexField(): UIFieldBehavior; animationSpeed: number; direction: CGVector; falloff: number; readonly items: NSArray; minimumRadius: number; position: CGPoint; region: UIRegion; smoothness: number; strength: number; addItem(item: UIDynamicItem): void; removeItem(item: UIDynamicItem): void; } interface UIFloatRange { minimum: number; maximum: number; } declare var UIFloatRange: interop.StructType; declare var UIFloatRangeInfinite: UIFloatRange; declare function UIFloatRangeIsEqualToRange(range: UIFloatRange, otherRange: UIFloatRange): boolean; declare function UIFloatRangeIsInfinite(range: UIFloatRange): boolean; declare var UIFloatRangeZero: UIFloatRange; declare class UIFocusAnimationCoordinator extends NSObject { static alloc(): UIFocusAnimationCoordinator; // inherited from NSObject static new(): UIFocusAnimationCoordinator; // inherited from NSObject addCoordinatedAnimationsCompletion(animations: () => void, completion: () => void): void; } interface UIFocusEnvironment extends NSObjectProtocol { preferredFocusEnvironments: NSArray; preferredFocusedView?: UIView; didUpdateFocusInContextWithAnimationCoordinator(context: UIFocusUpdateContext, coordinator: UIFocusAnimationCoordinator): void; setNeedsFocusUpdate(): void; shouldUpdateFocusInContext(context: UIFocusUpdateContext): boolean; updateFocusIfNeeded(): void; } declare var UIFocusEnvironment: { prototype: UIFocusEnvironment; }; declare class UIFocusGuide extends UILayoutGuide { static alloc(): UIFocusGuide; // inherited from NSObject static new(): UIFocusGuide; // inherited from NSObject enabled: boolean; preferredFocusEnvironments: NSArray; preferredFocusedView: UIView; } declare const enum UIFocusHeading { None = 0, Up = 1, Down = 2, Left = 4, Right = 8, Next = 16, Previous = 32 } interface UIFocusItem extends UIFocusEnvironment { canBecomeFocused: boolean; } declare var UIFocusItem: { prototype: UIFocusItem; }; declare class UIFocusUpdateContext extends NSObject { static alloc(): UIFocusUpdateContext; // inherited from NSObject static new(): UIFocusUpdateContext; // inherited from NSObject readonly focusHeading: UIFocusHeading; readonly nextFocusedItem: UIFocusItem; readonly nextFocusedView: UIView; readonly previouslyFocusedItem: UIFocusItem; readonly previouslyFocusedView: UIView; } declare class UIFont extends NSObject implements NSCopying { static alloc(): UIFont; // inherited from NSObject static boldSystemFontOfSize(fontSize: number): UIFont; static fontNamesForFamilyName(familyName: string): NSArray; static fontWithDescriptorSize(descriptor: UIFontDescriptor, pointSize: number): UIFont; static fontWithNameSize(fontName: string, fontSize: number): UIFont; static italicSystemFontOfSize(fontSize: number): UIFont; static monospacedDigitSystemFontOfSizeWeight(fontSize: number, weight: number): UIFont; static new(): UIFont; // inherited from NSObject static preferredFontForTextStyle(style: string): UIFont; static preferredFontForTextStyleCompatibleWithTraitCollection(style: string, traitCollection: UITraitCollection): UIFont; static systemFontOfSize(fontSize: number): UIFont; static systemFontOfSizeWeight(fontSize: number, weight: number): UIFont; readonly ascender: number; readonly capHeight: number; readonly descender: number; readonly familyName: string; readonly fontDescriptor: UIFontDescriptor; readonly fontName: string; readonly leading: number; readonly lineHeight: number; readonly pointSize: number; readonly xHeight: number; static readonly buttonFontSize: number; static readonly familyNames: NSArray; static readonly labelFontSize: number; static readonly smallSystemFontSize: number; static readonly systemFontSize: number; copyWithZone(zone: interop.Pointer | interop.Reference): any; fontWithSize(fontSize: number): UIFont; } declare class UIFontDescriptor extends NSObject implements NSCopying, NSSecureCoding { static alloc(): UIFontDescriptor; // inherited from NSObject static fontDescriptorWithFontAttributes(attributes: NSDictionary): UIFontDescriptor; static fontDescriptorWithNameMatrix(fontName: string, matrix: CGAffineTransform): UIFontDescriptor; static fontDescriptorWithNameSize(fontName: string, size: number): UIFontDescriptor; static new(): UIFontDescriptor; // inherited from NSObject static preferredFontDescriptorWithTextStyle(style: string): UIFontDescriptor; static preferredFontDescriptorWithTextStyleCompatibleWithTraitCollection(style: string, traitCollection: UITraitCollection): UIFontDescriptor; readonly fontAttributes: NSDictionary; readonly matrix: CGAffineTransform; readonly pointSize: number; readonly postscriptName: string; readonly symbolicTraits: UIFontDescriptorSymbolicTraits; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { fontAttributes: NSDictionary; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; fontDescriptorByAddingAttributes(attributes: NSDictionary): UIFontDescriptor; fontDescriptorWithFace(newFace: string): UIFontDescriptor; fontDescriptorWithFamily(newFamily: string): UIFontDescriptor; fontDescriptorWithMatrix(matrix: CGAffineTransform): UIFontDescriptor; fontDescriptorWithSize(newPointSize: number): UIFontDescriptor; fontDescriptorWithSymbolicTraits(symbolicTraits: UIFontDescriptorSymbolicTraits): UIFontDescriptor; initWithCoder(aDecoder: NSCoder): this; initWithFontAttributes(attributes: NSDictionary): this; matchingFontDescriptorsWithMandatoryKeys(mandatoryKeys: NSSet): NSArray; objectForKey(anAttribute: string): any; } declare var UIFontDescriptorCascadeListAttribute: string; declare var UIFontDescriptorCharacterSetAttribute: string; declare var UIFontDescriptorFaceAttribute: string; declare var UIFontDescriptorFamilyAttribute: string; declare var UIFontDescriptorFeatureSettingsAttribute: string; declare var UIFontDescriptorFixedAdvanceAttribute: string; declare var UIFontDescriptorMatrixAttribute: string; declare var UIFontDescriptorNameAttribute: string; declare var UIFontDescriptorSizeAttribute: string; declare const enum UIFontDescriptorSymbolicTraits { TraitItalic = 1, TraitBold = 2, TraitExpanded = 32, TraitCondensed = 64, TraitMonoSpace = 1024, TraitVertical = 2048, TraitUIOptimized = 4096, TraitTightLeading = 32768, TraitLooseLeading = 65536, ClassMask = 4026531840, ClassUnknown = 0, ClassOldStyleSerifs = 268435456, ClassTransitionalSerifs = 536870912, ClassModernSerifs = 805306368, ClassClarendonSerifs = 1073741824, ClassSlabSerifs = 1342177280, ClassFreeformSerifs = 1879048192, ClassSansSerif = 2147483648, ClassOrnamentals = 2415919104, ClassScripts = 2684354560, ClassSymbolic = 3221225472 } declare var UIFontDescriptorTextStyleAttribute: string; declare var UIFontDescriptorTraitsAttribute: string; declare var UIFontDescriptorVisibleNameAttribute: string; declare var UIFontFeatureSelectorIdentifierKey: string; declare var UIFontFeatureTypeIdentifierKey: string; declare var UIFontSlantTrait: string; declare var UIFontSymbolicTrait: string; declare var UIFontTextStyleBody: string; declare var UIFontTextStyleCallout: string; declare var UIFontTextStyleCaption1: string; declare var UIFontTextStyleCaption2: string; declare var UIFontTextStyleFootnote: string; declare var UIFontTextStyleHeadline: string; declare var UIFontTextStyleSubheadline: string; declare var UIFontTextStyleTitle1: string; declare var UIFontTextStyleTitle2: string; declare var UIFontTextStyleTitle3: string; declare var UIFontWeightBlack: number; declare var UIFontWeightBold: number; declare var UIFontWeightHeavy: number; declare var UIFontWeightLight: number; declare var UIFontWeightMedium: number; declare var UIFontWeightRegular: number; declare var UIFontWeightSemibold: number; declare var UIFontWeightThin: number; declare var UIFontWeightTrait: string; declare var UIFontWeightUltraLight: number; declare var UIFontWidthTrait: string; declare const enum UIForceTouchCapability { Unknown = 0, Unavailable = 1, Available = 2 } declare class UIGestureRecognizer extends NSObject { static alloc(): UIGestureRecognizer; // inherited from NSObject static new(): UIGestureRecognizer; // inherited from NSObject allowedPressTypes: NSArray; allowedTouchTypes: NSArray; cancelsTouchesInView: boolean; delaysTouchesBegan: boolean; delaysTouchesEnded: boolean; delegate: UIGestureRecognizerDelegate; enabled: boolean; readonly numberOfTouches: number; requiresExclusiveTouchType: boolean; readonly state: UIGestureRecognizerState; readonly view: UIView; constructor(o: { target: any; action: string; }); addTargetAction(target: any, action: string): void; canBePreventedByGestureRecognizer(preventingGestureRecognizer: UIGestureRecognizer): boolean; canPreventGestureRecognizer(preventedGestureRecognizer: UIGestureRecognizer): boolean; ignorePressForEvent(button: UIPress, event: UIPressesEvent): void; ignoreTouchForEvent(touch: UITouch, event: UIEvent): void; initWithTargetAction(target: any, action: string): this; locationInView(view: UIView): CGPoint; locationOfTouchInView(touchIndex: number, view: UIView): CGPoint; pressesBeganWithEvent(presses: NSSet, event: UIPressesEvent): void; pressesCancelledWithEvent(presses: NSSet, event: UIPressesEvent): void; pressesChangedWithEvent(presses: NSSet, event: UIPressesEvent): void; pressesEndedWithEvent(presses: NSSet, event: UIPressesEvent): void; removeTargetAction(target: any, action: string): void; requireGestureRecognizerToFail(otherGestureRecognizer: UIGestureRecognizer): void; reset(): void; shouldBeRequiredToFailByGestureRecognizer(otherGestureRecognizer: UIGestureRecognizer): boolean; shouldRequireFailureOfGestureRecognizer(otherGestureRecognizer: UIGestureRecognizer): boolean; touchesBeganWithEvent(touches: NSSet, event: UIEvent): void; touchesCancelledWithEvent(touches: NSSet, event: UIEvent): void; touchesEndedWithEvent(touches: NSSet, event: UIEvent): void; touchesEstimatedPropertiesUpdated(touches: NSSet): void; touchesMovedWithEvent(touches: NSSet, event: UIEvent): void; } interface UIGestureRecognizerDelegate extends NSObjectProtocol { gestureRecognizerShouldBeRequiredToFailByGestureRecognizer?(gestureRecognizer: UIGestureRecognizer, otherGestureRecognizer: UIGestureRecognizer): boolean; gestureRecognizerShouldBegin?(gestureRecognizer: UIGestureRecognizer): boolean; gestureRecognizerShouldReceivePress?(gestureRecognizer: UIGestureRecognizer, press: UIPress): boolean; gestureRecognizerShouldReceiveTouch?(gestureRecognizer: UIGestureRecognizer, touch: UITouch): boolean; gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer?(gestureRecognizer: UIGestureRecognizer, otherGestureRecognizer: UIGestureRecognizer): boolean; gestureRecognizerShouldRequireFailureOfGestureRecognizer?(gestureRecognizer: UIGestureRecognizer, otherGestureRecognizer: UIGestureRecognizer): boolean; } declare var UIGestureRecognizerDelegate: { prototype: UIGestureRecognizerDelegate; }; declare const enum UIGestureRecognizerState { Possible = 0, Began = 1, Changed = 2, Ended = 3, Cancelled = 4, Failed = 5, Recognized = 3 } declare function UIGraphicsAddPDFContextDestinationAtPoint(name: string, point: CGPoint): void; declare function UIGraphicsBeginImageContext(size: CGSize): void; declare function UIGraphicsBeginImageContextWithOptions(size: CGSize, opaque: boolean, scale: number): void; declare function UIGraphicsBeginPDFContextToData(data: NSMutableData, bounds: CGRect, documentInfo: NSDictionary): void; declare function UIGraphicsBeginPDFContextToFile(path: string, bounds: CGRect, documentInfo: NSDictionary): boolean; declare function UIGraphicsBeginPDFPage(): void; declare function UIGraphicsBeginPDFPageWithInfo(bounds: CGRect, pageInfo: NSDictionary): void; declare function UIGraphicsEndImageContext(): void; declare function UIGraphicsEndPDFContext(): void; declare function UIGraphicsGetCurrentContext(): any; declare function UIGraphicsGetImageFromCurrentImageContext(): UIImage; declare function UIGraphicsGetPDFContextBounds(): CGRect; declare class UIGraphicsImageRenderer extends UIGraphicsRenderer { static alloc(): UIGraphicsImageRenderer; // inherited from NSObject static new(): UIGraphicsImageRenderer; // inherited from NSObject constructor(o: { bounds: CGRect; format: UIGraphicsImageRendererFormat; }); constructor(o: { size: CGSize; }); constructor(o: { size: CGSize; format: UIGraphicsImageRendererFormat; }); JPEGDataWithCompressionQualityActions(compressionQuality: number, actions: (p1: UIGraphicsImageRendererContext) => void): NSData; PNGDataWithActions(actions: (p1: UIGraphicsImageRendererContext) => void): NSData; imageWithActions(actions: (p1: UIGraphicsImageRendererContext) => void): UIImage; initWithBoundsFormat(bounds: CGRect, format: UIGraphicsImageRendererFormat): this; initWithSize(size: CGSize): this; initWithSizeFormat(size: CGSize, format: UIGraphicsImageRendererFormat): this; } declare class UIGraphicsImageRendererContext extends UIGraphicsRendererContext { static alloc(): UIGraphicsImageRendererContext; // inherited from NSObject static new(): UIGraphicsImageRendererContext; // inherited from NSObject readonly currentImage: UIImage; } declare class UIGraphicsImageRendererFormat extends UIGraphicsRendererFormat { static alloc(): UIGraphicsImageRendererFormat; // inherited from NSObject static defaultFormat(): UIGraphicsImageRendererFormat; // inherited from UIGraphicsRendererFormat static new(): UIGraphicsImageRendererFormat; // inherited from NSObject opaque: boolean; prefersExtendedRange: boolean; scale: number; } declare class UIGraphicsPDFRenderer extends UIGraphicsRenderer { static alloc(): UIGraphicsPDFRenderer; // inherited from NSObject static new(): UIGraphicsPDFRenderer; // inherited from NSObject constructor(o: { bounds: CGRect; format: UIGraphicsPDFRendererFormat; }); PDFDataWithActions(actions: (p1: UIGraphicsPDFRendererContext) => void): NSData; initWithBoundsFormat(bounds: CGRect, format: UIGraphicsPDFRendererFormat): this; writePDFToURLWithActionsError(url: NSURL, actions: (p1: UIGraphicsPDFRendererContext) => void): boolean; } declare class UIGraphicsPDFRendererContext extends UIGraphicsRendererContext { static alloc(): UIGraphicsPDFRendererContext; // inherited from NSObject static new(): UIGraphicsPDFRendererContext; // inherited from NSObject readonly pdfContextBounds: CGRect; addDestinationWithNameAtPoint(name: string, point: CGPoint): void; beginPage(): void; beginPageWithBoundsPageInfo(bounds: CGRect, pageInfo: NSDictionary): void; setDestinationWithNameForRect(name: string, rect: CGRect): void; setURLForRect(url: NSURL, rect: CGRect): void; } declare class UIGraphicsPDFRendererFormat extends UIGraphicsRendererFormat { static alloc(): UIGraphicsPDFRendererFormat; // inherited from NSObject static defaultFormat(): UIGraphicsPDFRendererFormat; // inherited from UIGraphicsRendererFormat static new(): UIGraphicsPDFRendererFormat; // inherited from NSObject documentInfo: NSDictionary; } declare function UIGraphicsPopContext(): void; declare function UIGraphicsPushContext(context: any): void; declare class UIGraphicsRenderer extends NSObject { static alloc(): UIGraphicsRenderer; // inherited from NSObject static contextWithFormat(format: UIGraphicsRendererFormat): any; static new(): UIGraphicsRenderer; // inherited from NSObject static prepareCGContextWithRendererContext(context: any, rendererContext: UIGraphicsRendererContext): void; static rendererContextClass(): typeof NSObject; readonly allowsImageOutput: boolean; readonly format: UIGraphicsRendererFormat; constructor(o: { bounds: CGRect; }); constructor(o: { bounds: CGRect; format: UIGraphicsRendererFormat; }); initWithBounds(bounds: CGRect): this; initWithBoundsFormat(bounds: CGRect, format: UIGraphicsRendererFormat): this; runDrawingActionsCompletionActionsError(drawingActions: (p1: UIGraphicsRendererContext) => void, completionActions: (p1: UIGraphicsRendererContext) => void): boolean; } declare class UIGraphicsRendererContext extends NSObject { static alloc(): UIGraphicsRendererContext; // inherited from NSObject static new(): UIGraphicsRendererContext; // inherited from NSObject readonly CGContext: any; readonly format: UIGraphicsRendererFormat; clipToRect(rect: CGRect): void; fillRect(rect: CGRect): void; fillRectBlendMode(rect: CGRect, blendMode: CGBlendMode): void; strokeRect(rect: CGRect): void; strokeRectBlendMode(rect: CGRect, blendMode: CGBlendMode): void; } declare class UIGraphicsRendererFormat extends NSObject implements NSCopying { static alloc(): UIGraphicsRendererFormat; // inherited from NSObject static defaultFormat(): UIGraphicsRendererFormat; static new(): UIGraphicsRendererFormat; // inherited from NSObject readonly bounds: CGRect; copyWithZone(zone: interop.Pointer | interop.Reference): any; } declare function UIGraphicsSetPDFContextDestinationForRect(name: string, rect: CGRect): void; declare function UIGraphicsSetPDFContextURLForRect(url: NSURL, rect: CGRect): void; declare class UIGravityBehavior extends UIDynamicBehavior { static alloc(): UIGravityBehavior; // inherited from NSObject static new(): UIGravityBehavior; // inherited from NSObject angle: number; gravityDirection: CGVector; readonly items: NSArray; magnitude: number; constructor(o: { items: NSArray; }); addItem(item: UIDynamicItem): void; initWithItems(items: NSArray): this; removeItem(item: UIDynamicItem): void; setAngleMagnitude(angle: number, magnitude: number): void; } interface UIGuidedAccessRestrictionDelegate extends NSObjectProtocol { guidedAccessRestrictionIdentifiers: NSArray; detailTextForGuidedAccessRestrictionWithIdentifier?(restrictionIdentifier: string): string; guidedAccessRestrictionWithIdentifierDidChangeState(restrictionIdentifier: string, newRestrictionState: UIGuidedAccessRestrictionState): void; textForGuidedAccessRestrictionWithIdentifier(restrictionIdentifier: string): string; } declare var UIGuidedAccessRestrictionDelegate: { prototype: UIGuidedAccessRestrictionDelegate; }; declare const enum UIGuidedAccessRestrictionState { Allow = 0, Deny = 1 } declare function UIGuidedAccessRestrictionStateForIdentifier(restrictionIdentifier: string): UIGuidedAccessRestrictionState; declare class UIImage extends NSObject implements NSSecureCoding, UIAccessibilityIdentification { static alloc(): UIImage; // inherited from NSObject static animatedImageNamedDuration(name: string, duration: number): UIImage; static animatedImageWithImagesDuration(images: NSArray, duration: number): UIImage; static animatedResizableImageNamedCapInsetsDuration(name: string, capInsets: UIEdgeInsets, duration: number): UIImage; static animatedResizableImageNamedCapInsetsResizingModeDuration(name: string, capInsets: UIEdgeInsets, resizingMode: UIImageResizingMode, duration: number): UIImage; static imageNamed(name: string): UIImage; static imageNamedInBundleCompatibleWithTraitCollection(name: string, bundle: NSBundle, traitCollection: UITraitCollection): UIImage; static imageWithCGImage(cgImage: any): UIImage; static imageWithCGImageScaleOrientation(cgImage: any, scale: number, orientation: UIImageOrientation): UIImage; static imageWithCIImage(ciImage: CIImage): UIImage; static imageWithCIImageScaleOrientation(ciImage: CIImage, scale: number, orientation: UIImageOrientation): UIImage; static imageWithContentsOfFile(path: string): UIImage; static imageWithData(data: NSData): UIImage; static imageWithDataScale(data: NSData, scale: number): UIImage; static new(): UIImage; // inherited from NSObject static tns_decodeImageWidthContentsOfFileCompletion(file: string, callback: (p1: UIImage) => void): void; static tns_decodeImageWithDataCompletion(data: NSData, callback: (p1: UIImage) => void): void; static tns_safeDecodeImageNamedCompletion(name: string, callback: (p1: UIImage) => void): void; static tns_safeImageNamed(name: string): UIImage; readonly CGImage: any; readonly CIImage: CIImage; readonly alignmentRectInsets: UIEdgeInsets; readonly capInsets: UIEdgeInsets; readonly duration: number; readonly flipsForRightToLeftLayoutDirection: boolean; readonly imageAsset: UIImageAsset; readonly imageOrientation: UIImageOrientation; readonly imageRendererFormat: UIGraphicsImageRendererFormat; readonly images: NSArray; readonly leftCapWidth: number; readonly renderingMode: UIImageRenderingMode; readonly resizingMode: UIImageResizingMode; readonly scale: number; readonly size: CGSize; readonly topCapHeight: number; readonly traitCollection: UITraitCollection; accessibilityIdentifier: string; // inherited from UIAccessibilityIdentification readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { CGImage: any; }); constructor(o: { CGImage: any; scale: number; orientation: UIImageOrientation; }); constructor(o: { CIImage: CIImage; }); constructor(o: { CIImage: CIImage; scale: number; orientation: UIImageOrientation; }); constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { contentsOfFile: string; }); constructor(o: { data: NSData; }); constructor(o: { data: NSData; scale: number; }); class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; drawAsPatternInRect(rect: CGRect): void; drawAtPoint(point: CGPoint): void; drawAtPointBlendModeAlpha(point: CGPoint, blendMode: CGBlendMode, alpha: number): void; drawInRect(rect: CGRect): void; drawInRectBlendModeAlpha(rect: CGRect, blendMode: CGBlendMode, alpha: number): void; encodeWithCoder(aCoder: NSCoder): void; imageFlippedForRightToLeftLayoutDirection(): UIImage; imageWithAlignmentRectInsets(alignmentInsets: UIEdgeInsets): UIImage; imageWithHorizontallyFlippedOrientation(): UIImage; imageWithRenderingMode(renderingMode: UIImageRenderingMode): UIImage; initWithCGImage(cgImage: any): this; initWithCGImageScaleOrientation(cgImage: any, scale: number, orientation: UIImageOrientation): this; initWithCIImage(ciImage: CIImage): this; initWithCIImageScaleOrientation(ciImage: CIImage, scale: number, orientation: UIImageOrientation): this; initWithCoder(aDecoder: NSCoder): this; initWithContentsOfFile(path: string): this; initWithData(data: NSData): this; initWithDataScale(data: NSData, scale: number): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; resizableImageWithCapInsets(capInsets: UIEdgeInsets): UIImage; resizableImageWithCapInsetsResizingMode(capInsets: UIEdgeInsets, resizingMode: UIImageResizingMode): UIImage; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; stretchableImageWithLeftCapWidthTopCapHeight(leftCapWidth: number, topCapHeight: number): UIImage; } declare class UIImageAsset extends NSObject implements NSSecureCoding { static alloc(): UIImageAsset; // inherited from NSObject static new(): UIImageAsset; // inherited from NSObject static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding encodeWithCoder(aCoder: NSCoder): void; imageWithTraitCollection(traitCollection: UITraitCollection): UIImage; initWithCoder(aDecoder: NSCoder): this; registerImageWithTraitCollection(image: UIImage, traitCollection: UITraitCollection): void; unregisterImageWithTraitCollection(traitCollection: UITraitCollection): void; } declare function UIImageJPEGRepresentation(image: UIImage, compressionQuality: number): NSData; declare const enum UIImageOrientation { Up = 0, Down = 1, Left = 2, Right = 3, UpMirrored = 4, DownMirrored = 5, LeftMirrored = 6, RightMirrored = 7 } declare function UIImagePNGRepresentation(image: UIImage): NSData; declare class UIImagePickerController extends UINavigationController implements NSCoding { static alloc(): UIImagePickerController; // inherited from NSObject static availableCaptureModesForCameraDevice(cameraDevice: UIImagePickerControllerCameraDevice): NSArray; static availableMediaTypesForSourceType(sourceType: UIImagePickerControllerSourceType): NSArray; static isCameraDeviceAvailable(cameraDevice: UIImagePickerControllerCameraDevice): boolean; static isFlashAvailableForCameraDevice(cameraDevice: UIImagePickerControllerCameraDevice): boolean; static isSourceTypeAvailable(sourceType: UIImagePickerControllerSourceType): boolean; static new(): UIImagePickerController; // inherited from NSObject allowsEditing: boolean; allowsImageEditing: boolean; cameraCaptureMode: UIImagePickerControllerCameraCaptureMode; cameraDevice: UIImagePickerControllerCameraDevice; cameraFlashMode: UIImagePickerControllerCameraFlashMode; cameraOverlayView: UIView; cameraViewTransform: CGAffineTransform; delegate: any; mediaTypes: NSArray; showsCameraControls: boolean; sourceType: UIImagePickerControllerSourceType; videoMaximumDuration: number; videoQuality: UIImagePickerControllerQualityType; constructor(o: { coder: NSCoder; }); // inherited from NSCoding encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; startVideoCapture(): boolean; stopVideoCapture(): void; takePicture(): void; } declare const enum UIImagePickerControllerCameraCaptureMode { Photo = 0, Video = 1 } declare const enum UIImagePickerControllerCameraDevice { Rear = 0, Front = 1 } declare const enum UIImagePickerControllerCameraFlashMode { Off = -1, Auto = 0, On = 1 } declare var UIImagePickerControllerCropRect: string; interface UIImagePickerControllerDelegate extends NSObjectProtocol { imagePickerControllerDidCancel?(picker: UIImagePickerController): void; imagePickerControllerDidFinishPickingImageEditingInfo?(picker: UIImagePickerController, image: UIImage, editingInfo: NSDictionary): void; imagePickerControllerDidFinishPickingMediaWithInfo?(picker: UIImagePickerController, info: NSDictionary): void; } declare var UIImagePickerControllerDelegate: { prototype: UIImagePickerControllerDelegate; }; declare var UIImagePickerControllerEditedImage: string; declare var UIImagePickerControllerLivePhoto: string; declare var UIImagePickerControllerMediaMetadata: string; declare var UIImagePickerControllerMediaType: string; declare var UIImagePickerControllerMediaURL: string; declare var UIImagePickerControllerOriginalImage: string; declare const enum UIImagePickerControllerQualityType { TypeHigh = 0, TypeMedium = 1, TypeLow = 2, Type640x480 = 3, TypeIFrame1280x720 = 4, TypeIFrame960x540 = 5 } declare var UIImagePickerControllerReferenceURL: string; declare const enum UIImagePickerControllerSourceType { PhotoLibrary = 0, Camera = 1, SavedPhotosAlbum = 2 } declare const enum UIImageRenderingMode { Automatic = 0, AlwaysOriginal = 1, AlwaysTemplate = 2 } declare const enum UIImageResizingMode { Tile = 0, Stretch = 1 } declare class UIImageView extends UIView { static alloc(): UIImageView; // inherited from NSObject static appearance(): UIImageView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIImageView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIImageView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIImageView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIImageView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIImageView; // inherited from UIAppearance static new(): UIImageView; // inherited from NSObject readonly animating: boolean; animationDuration: number; animationImages: NSArray; animationRepeatCount: number; highlighted: boolean; highlightedAnimationImages: NSArray; highlightedImage: UIImage; image: UIImage; constructor(o: { image: UIImage; }); constructor(o: { image: UIImage; highlightedImage: UIImage; }); initWithImage(image: UIImage): this; initWithImageHighlightedImage(image: UIImage, highlightedImage: UIImage): this; startAnimating(): void; stopAnimating(): void; } declare function UIImageWriteToSavedPhotosAlbum(image: UIImage, completionTarget: any, completionSelector: string, contextInfo: interop.Pointer | interop.Reference): void; declare class UIImpactFeedbackGenerator extends UIFeedbackGenerator { static alloc(): UIImpactFeedbackGenerator; // inherited from NSObject static new(): UIImpactFeedbackGenerator; // inherited from NSObject constructor(o: { style: UIImpactFeedbackStyle; }); impactOccurred(): void; initWithStyle(style: UIImpactFeedbackStyle): this; } declare const enum UIImpactFeedbackStyle { Light = 0, Medium = 1, Heavy = 2 } declare class UIInputView extends UIView { static alloc(): UIInputView; // inherited from NSObject static appearance(): UIInputView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIInputView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIInputView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIInputView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIInputView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIInputView; // inherited from UIAppearance static new(): UIInputView; // inherited from NSObject allowsSelfSizing: boolean; readonly inputViewStyle: UIInputViewStyle; constructor(o: { frame: CGRect; inputViewStyle: UIInputViewStyle; }); initWithFrameInputViewStyle(frame: CGRect, inputViewStyle: UIInputViewStyle): this; } interface UIInputViewAudioFeedback extends NSObjectProtocol { enableInputClicksWhenVisible?: boolean; } declare var UIInputViewAudioFeedback: { prototype: UIInputViewAudioFeedback; }; declare class UIInputViewController extends UIViewController implements UITextInputDelegate { static alloc(): UIInputViewController; // inherited from NSObject static new(): UIInputViewController; // inherited from NSObject inputView: UIInputView; primaryLanguage: string; readonly textDocumentProxy: UITextDocumentProxy; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol advanceToNextInputMode(): void; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; dismissKeyboard(): void; handleInputModeListFromViewWithEvent(view: UIView, event: UIEvent): void; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; requestSupplementaryLexiconWithCompletion(completionHandler: (p1: UILexicon) => void): void; respondsToSelector(aSelector: string): boolean; retainCount(): number; selectionDidChange(textInput: UITextInput): void; selectionWillChange(textInput: UITextInput): void; self(): this; textDidChange(textInput: UITextInput): void; textWillChange(textInput: UITextInput): void; } declare const enum UIInputViewStyle { Default = 0, Keyboard = 1 } declare const enum UIInterfaceOrientation { Unknown = 0, Portrait = 1, PortraitUpsideDown = 2, LandscapeLeft = 4, LandscapeRight = 3 } declare const enum UIInterfaceOrientationMask { Portrait = 2, LandscapeLeft = 16, LandscapeRight = 8, PortraitUpsideDown = 4, Landscape = 24, All = 30, AllButUpsideDown = 26 } declare class UIInterpolatingMotionEffect extends UIMotionEffect { static alloc(): UIInterpolatingMotionEffect; // inherited from NSObject static new(): UIInterpolatingMotionEffect; // inherited from NSObject readonly keyPath: string; maximumRelativeValue: any; minimumRelativeValue: any; readonly type: UIInterpolatingMotionEffectType; constructor(o: { keyPath: string; type: UIInterpolatingMotionEffectType; }); initWithKeyPathType(keyPath: string, type: UIInterpolatingMotionEffectType): this; } declare const enum UIInterpolatingMotionEffectType { TiltAlongHorizontalAxis = 0, TiltAlongVerticalAxis = 1 } declare class UIKeyCommand extends NSObject implements NSCopying, NSSecureCoding { static alloc(): UIKeyCommand; // inherited from NSObject static keyCommandWithInputModifierFlagsAction(input: string, modifierFlags: UIKeyModifierFlags, action: string): UIKeyCommand; static keyCommandWithInputModifierFlagsActionDiscoverabilityTitle(input: string, modifierFlags: UIKeyModifierFlags, action: string, discoverabilityTitle: string): UIKeyCommand; static new(): UIKeyCommand; // inherited from NSObject discoverabilityTitle: string; readonly input: string; readonly modifierFlags: UIKeyModifierFlags; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; } interface UIKeyInput extends UITextInputTraits { hasText: boolean; deleteBackward(): void; insertText(text: string): void; } declare var UIKeyInput: { prototype: UIKeyInput; }; declare var UIKeyInputDownArrow: string; declare var UIKeyInputEscape: string; declare var UIKeyInputLeftArrow: string; declare var UIKeyInputRightArrow: string; declare var UIKeyInputUpArrow: string; declare const enum UIKeyModifierFlags { AlphaShift = 65536, Shift = 131072, Control = 262144, Alternate = 524288, Command = 1048576, NumericPad = 2097152 } declare var UIKeyboardAnimationCurveUserInfoKey: string; declare var UIKeyboardAnimationDurationUserInfoKey: string; declare const enum UIKeyboardAppearance { Default = 0, Dark = 1, Light = 2, Alert = 1 } declare var UIKeyboardBoundsUserInfoKey: string; declare var UIKeyboardCenterBeginUserInfoKey: string; declare var UIKeyboardCenterEndUserInfoKey: string; declare var UIKeyboardDidChangeFrameNotification: string; declare var UIKeyboardDidHideNotification: string; declare var UIKeyboardDidShowNotification: string; declare var UIKeyboardFrameBeginUserInfoKey: string; declare var UIKeyboardFrameEndUserInfoKey: string; declare var UIKeyboardIsLocalUserInfoKey: string; declare const enum UIKeyboardType { Default = 0, ASCIICapable = 1, NumbersAndPunctuation = 2, URL = 3, NumberPad = 4, PhonePad = 5, NamePhonePad = 6, EmailAddress = 7, DecimalPad = 8, Twitter = 9, WebSearch = 10, ASCIICapableNumberPad = 11, Alphabet = 1 } declare var UIKeyboardWillChangeFrameNotification: string; declare var UIKeyboardWillHideNotification: string; declare var UIKeyboardWillShowNotification: string; declare class UILabel extends UIView implements NSCoding, UIContentSizeCategoryAdjusting { static alloc(): UILabel; // inherited from NSObject static appearance(): UILabel; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UILabel; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UILabel; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UILabel; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UILabel; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UILabel; // inherited from UIAppearance static new(): UILabel; // inherited from NSObject adjustsFontSizeToFitWidth: boolean; adjustsLetterSpacingToFitWidth: boolean; allowsDefaultTighteningForTruncation: boolean; attributedText: NSAttributedString; baselineAdjustment: UIBaselineAdjustment; enabled: boolean; font: UIFont; highlighted: boolean; highlightedTextColor: UIColor; lineBreakMode: NSLineBreakMode; minimumFontSize: number; minimumScaleFactor: number; numberOfLines: number; preferredMaxLayoutWidth: number; shadowColor: UIColor; shadowOffset: CGSize; text: string; textAlignment: NSTextAlignment; textColor: UIColor; adjustsFontForContentSizeCategory: boolean; // inherited from UIContentSizeCategoryAdjusting readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { coder: NSCoder; }); // inherited from NSCoding class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; drawTextInRect(rect: CGRect): void; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; textRectForBoundsLimitedToNumberOfLines(bounds: CGRect, numberOfLines: number): CGRect; } declare const enum UILayoutConstraintAxis { Horizontal = 0, Vertical = 1 } declare var UILayoutFittingCompressedSize: CGSize; declare var UILayoutFittingExpandedSize: CGSize; declare class UILayoutGuide extends NSObject implements NSCoding { static alloc(): UILayoutGuide; // inherited from NSObject static new(): UILayoutGuide; // inherited from NSObject readonly bottomAnchor: NSLayoutYAxisAnchor; readonly centerXAnchor: NSLayoutXAxisAnchor; readonly centerYAnchor: NSLayoutYAxisAnchor; readonly hasAmbiguousLayout: boolean; readonly heightAnchor: NSLayoutDimension; identifier: string; readonly layoutFrame: CGRect; readonly leadingAnchor: NSLayoutXAxisAnchor; readonly leftAnchor: NSLayoutXAxisAnchor; owningView: UIView; readonly rightAnchor: NSLayoutXAxisAnchor; readonly topAnchor: NSLayoutYAxisAnchor; readonly trailingAnchor: NSLayoutXAxisAnchor; readonly widthAnchor: NSLayoutDimension; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constraintsAffectingLayoutForAxis(axis: UILayoutConstraintAxis): NSArray; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; } declare var UILayoutPriorityDefaultHigh: number; declare var UILayoutPriorityDefaultLow: number; declare var UILayoutPriorityFittingSizeLevel: number; declare var UILayoutPriorityRequired: number; interface UILayoutSupport extends NSObjectProtocol { bottomAnchor: NSLayoutYAxisAnchor; heightAnchor: NSLayoutDimension; length: number; topAnchor: NSLayoutYAxisAnchor; } declare var UILayoutSupport: { prototype: UILayoutSupport; }; declare class UILexicon extends NSObject implements NSCopying { static alloc(): UILexicon; // inherited from NSObject static new(): UILexicon; // inherited from NSObject readonly entries: NSArray; copyWithZone(zone: interop.Pointer | interop.Reference): any; } declare class UILexiconEntry extends NSObject implements NSCopying { static alloc(): UILexiconEntry; // inherited from NSObject static new(): UILexiconEntry; // inherited from NSObject readonly documentText: string; readonly userInput: string; copyWithZone(zone: interop.Pointer | interop.Reference): any; } declare const enum UILineBreakMode { WordWrap = 0, CharacterWrap = 1, Clip = 2, HeadTruncation = 3, TailTruncation = 4, MiddleTruncation = 5 } declare class UILocalNotification extends NSObject implements NSCoding, NSCopying { static alloc(): UILocalNotification; // inherited from NSObject static new(): UILocalNotification; // inherited from NSObject alertAction: string; alertBody: string; alertLaunchImage: string; alertTitle: string; applicationIconBadgeNumber: number; category: string; fireDate: Date; hasAction: boolean; region: CLRegion; regionTriggersOnce: boolean; repeatCalendar: NSCalendar; repeatInterval: NSCalendarUnit; soundName: string; timeZone: NSTimeZone; userInfo: NSDictionary; constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; } declare var UILocalNotificationDefaultSoundName: string; declare class UILocalizedIndexedCollation extends NSObject { static alloc(): UILocalizedIndexedCollation; // inherited from NSObject static currentCollation(): UILocalizedIndexedCollation; static new(): UILocalizedIndexedCollation; // inherited from NSObject readonly sectionIndexTitles: NSArray; readonly sectionTitles: NSArray; sectionForObjectCollationStringSelector(object: any, selector: string): number; sectionForSectionIndexTitleAtIndex(indexTitleIndex: number): number; sortedArrayFromArrayCollationStringSelector(array: NSArray, selector: string): NSArray; } declare class UILongPressGestureRecognizer extends UIGestureRecognizer { static alloc(): UILongPressGestureRecognizer; // inherited from NSObject static new(): UILongPressGestureRecognizer; // inherited from NSObject allowableMovement: number; minimumPressDuration: number; numberOfTapsRequired: number; numberOfTouchesRequired: number; } declare class UIManagedDocument extends UIDocument { static alloc(): UIManagedDocument; // inherited from NSObject static new(): UIManagedDocument; // inherited from NSObject readonly managedObjectContext: NSManagedObjectContext; readonly managedObjectModel: NSManagedObjectModel; modelConfiguration: string; persistentStoreOptions: NSDictionary; static readonly persistentStoreName: string; additionalContentForURLError(absoluteURL: NSURL): any; configurePersistentStoreCoordinatorForURLOfTypeModelConfigurationStoreOptionsError(storeURL: NSURL, fileType: string, configuration: string, storeOptions: NSDictionary): boolean; persistentStoreTypeForFileType(fileType: string): string; readAdditionalContentFromURLError(absoluteURL: NSURL): boolean; writeAdditionalContentToURLOriginalContentsURLError(content: any, absoluteURL: NSURL, absoluteOriginalContentsURL: NSURL): boolean; } declare class UIMarkupTextPrintFormatter extends UIPrintFormatter { static alloc(): UIMarkupTextPrintFormatter; // inherited from NSObject static new(): UIMarkupTextPrintFormatter; // inherited from NSObject markupText: string; constructor(o: { markupText: string; }); initWithMarkupText(markupText: string): this; } declare class UIMenuController extends NSObject { static alloc(): UIMenuController; // inherited from NSObject static new(): UIMenuController; // inherited from NSObject arrowDirection: UIMenuControllerArrowDirection; readonly menuFrame: CGRect; menuItems: NSArray; menuVisible: boolean; static readonly sharedMenuController: UIMenuController; setMenuVisibleAnimated(menuVisible: boolean, animated: boolean): void; setTargetRectInView(targetRect: CGRect, targetView: UIView): void; update(): void; } declare const enum UIMenuControllerArrowDirection { Default = 0, Up = 1, Down = 2, Left = 3, Right = 4 } declare var UIMenuControllerDidHideMenuNotification: string; declare var UIMenuControllerDidShowMenuNotification: string; declare var UIMenuControllerMenuFrameDidChangeNotification: string; declare var UIMenuControllerWillHideMenuNotification: string; declare var UIMenuControllerWillShowMenuNotification: string; declare class UIMenuItem extends NSObject { static alloc(): UIMenuItem; // inherited from NSObject static new(): UIMenuItem; // inherited from NSObject action: string; title: string; constructor(o: { title: string; action: string; }); initWithTitleAction(title: string, action: string): this; } declare var UIMinimumKeepAliveTimeout: number; declare const enum UIModalPresentationStyle { FullScreen = 0, PageSheet = 1, FormSheet = 2, CurrentContext = 3, Custom = 4, OverFullScreen = 5, OverCurrentContext = 6, Popover = 7, None = -1 } declare const enum UIModalTransitionStyle { CoverVertical = 0, FlipHorizontal = 1, CrossDissolve = 2, PartialCurl = 3 } declare class UIMotionEffect extends NSObject implements NSCoding, NSCopying { static alloc(): UIMotionEffect; // inherited from NSObject static new(): UIMotionEffect; // inherited from NSObject constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; keyPathsAndRelativeValuesForViewerOffset(viewerOffset: UIOffset): NSDictionary; } declare class UIMotionEffectGroup extends UIMotionEffect { static alloc(): UIMotionEffectGroup; // inherited from NSObject static new(): UIMotionEffectGroup; // inherited from NSObject motionEffects: NSArray; } declare class UIMutableApplicationShortcutItem extends UIApplicationShortcutItem { static alloc(): UIMutableApplicationShortcutItem; // inherited from NSObject static new(): UIMutableApplicationShortcutItem; // inherited from NSObject icon: UIApplicationShortcutIcon; localizedSubtitle: string; localizedTitle: string; type: string; userInfo: NSDictionary; } declare class UIMutableUserNotificationAction extends UIUserNotificationAction { static alloc(): UIMutableUserNotificationAction; // inherited from NSObject static new(): UIMutableUserNotificationAction; // inherited from NSObject activationMode: UIUserNotificationActivationMode; authenticationRequired: boolean; behavior: UIUserNotificationActionBehavior; destructive: boolean; identifier: string; parameters: NSDictionary; title: string; } declare class UIMutableUserNotificationCategory extends UIUserNotificationCategory { static alloc(): UIMutableUserNotificationCategory; // inherited from NSObject static new(): UIMutableUserNotificationCategory; // inherited from NSObject identifier: string; setActionsForContext(actions: NSArray, context: UIUserNotificationActionContext): void; } declare class UINavigationBar extends UIView implements NSCoding, UIBarPositioning { static alloc(): UINavigationBar; // inherited from NSObject static appearance(): UINavigationBar; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UINavigationBar; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UINavigationBar; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UINavigationBar; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UINavigationBar; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UINavigationBar; // inherited from UIAppearance static new(): UINavigationBar; // inherited from NSObject backIndicatorImage: UIImage; backIndicatorTransitionMaskImage: UIImage; readonly backItem: UINavigationItem; barStyle: UIBarStyle; barTintColor: UIColor; delegate: UINavigationBarDelegate; items: NSArray; shadowImage: UIImage; titleTextAttributes: NSDictionary; readonly topItem: UINavigationItem; translucent: boolean; readonly barPosition: UIBarPosition; // inherited from UIBarPositioning readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { coder: NSCoder; }); // inherited from NSCoding backgroundImageForBarMetrics(barMetrics: UIBarMetrics): UIImage; backgroundImageForBarPositionBarMetrics(barPosition: UIBarPosition, barMetrics: UIBarMetrics): UIImage; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; popNavigationItemAnimated(animated: boolean): UINavigationItem; pushNavigationItemAnimated(item: UINavigationItem, animated: boolean): void; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; setBackgroundImageForBarMetrics(backgroundImage: UIImage, barMetrics: UIBarMetrics): void; setBackgroundImageForBarPositionBarMetrics(backgroundImage: UIImage, barPosition: UIBarPosition, barMetrics: UIBarMetrics): void; setItemsAnimated(items: NSArray, animated: boolean): void; setTitleVerticalPositionAdjustmentForBarMetrics(adjustment: number, barMetrics: UIBarMetrics): void; titleVerticalPositionAdjustmentForBarMetrics(barMetrics: UIBarMetrics): number; } interface UINavigationBarDelegate extends UIBarPositioningDelegate { navigationBarDidPopItem?(navigationBar: UINavigationBar, item: UINavigationItem): void; navigationBarDidPushItem?(navigationBar: UINavigationBar, item: UINavigationItem): void; navigationBarShouldPopItem?(navigationBar: UINavigationBar, item: UINavigationItem): boolean; navigationBarShouldPushItem?(navigationBar: UINavigationBar, item: UINavigationItem): boolean; } declare var UINavigationBarDelegate: { prototype: UINavigationBarDelegate; }; declare class UINavigationController extends UIViewController { static alloc(): UINavigationController; // inherited from NSObject static new(): UINavigationController; // inherited from NSObject readonly barHideOnSwipeGestureRecognizer: UIPanGestureRecognizer; readonly barHideOnTapGestureRecognizer: UITapGestureRecognizer; delegate: UINavigationControllerDelegate; hidesBarsOnSwipe: boolean; hidesBarsOnTap: boolean; hidesBarsWhenKeyboardAppears: boolean; hidesBarsWhenVerticallyCompact: boolean; readonly interactivePopGestureRecognizer: UIGestureRecognizer; readonly navigationBar: UINavigationBar; navigationBarHidden: boolean; readonly toolbar: UIToolbar; toolbarHidden: boolean; readonly topViewController: UIViewController; viewControllers: NSArray; readonly visibleViewController: UIViewController; constructor(o: { navigationBarClass: typeof NSObject; toolbarClass: typeof NSObject; }); constructor(o: { rootViewController: UIViewController; }); initWithNavigationBarClassToolbarClass(navigationBarClass: typeof NSObject, toolbarClass: typeof NSObject): this; initWithRootViewController(rootViewController: UIViewController): this; popToRootViewControllerAnimated(animated: boolean): NSArray; popToViewControllerAnimated(viewController: UIViewController, animated: boolean): NSArray; popViewControllerAnimated(animated: boolean): UIViewController; pushViewControllerAnimated(viewController: UIViewController, animated: boolean): void; setNavigationBarHiddenAnimated(hidden: boolean, animated: boolean): void; setToolbarHiddenAnimated(hidden: boolean, animated: boolean): void; setViewControllersAnimated(viewControllers: NSArray, animated: boolean): void; } interface UINavigationControllerDelegate extends NSObjectProtocol { navigationControllerAnimationControllerForOperationFromViewControllerToViewController?(navigationController: UINavigationController, operation: UINavigationControllerOperation, fromVC: UIViewController, toVC: UIViewController): UIViewControllerAnimatedTransitioning; navigationControllerDidShowViewControllerAnimated?(navigationController: UINavigationController, viewController: UIViewController, animated: boolean): void; navigationControllerInteractionControllerForAnimationController?(navigationController: UINavigationController, animationController: UIViewControllerAnimatedTransitioning): UIViewControllerInteractiveTransitioning; navigationControllerPreferredInterfaceOrientationForPresentation?(navigationController: UINavigationController): UIInterfaceOrientation; navigationControllerSupportedInterfaceOrientations?(navigationController: UINavigationController): UIInterfaceOrientationMask; navigationControllerWillShowViewControllerAnimated?(navigationController: UINavigationController, viewController: UIViewController, animated: boolean): void; } declare var UINavigationControllerDelegate: { prototype: UINavigationControllerDelegate; }; declare var UINavigationControllerHideShowBarDuration: number; declare const enum UINavigationControllerOperation { None = 0, Push = 1, Pop = 2 } declare class UINavigationItem extends NSObject implements NSCoding { static alloc(): UINavigationItem; // inherited from NSObject static new(): UINavigationItem; // inherited from NSObject backBarButtonItem: UIBarButtonItem; hidesBackButton: boolean; leftBarButtonItem: UIBarButtonItem; leftBarButtonItems: NSArray; leftItemsSupplementBackButton: boolean; prompt: string; rightBarButtonItem: UIBarButtonItem; rightBarButtonItems: NSArray; title: string; titleView: UIView; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { title: string; }); encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithTitle(title: string): this; setHidesBackButtonAnimated(hidesBackButton: boolean, animated: boolean): void; setLeftBarButtonItemAnimated(item: UIBarButtonItem, animated: boolean): void; setLeftBarButtonItemsAnimated(items: NSArray, animated: boolean): void; setRightBarButtonItemAnimated(item: UIBarButtonItem, animated: boolean): void; setRightBarButtonItemsAnimated(items: NSArray, animated: boolean): void; } declare class UINib extends NSObject { static alloc(): UINib; // inherited from NSObject static new(): UINib; // inherited from NSObject static nibWithDataBundle(data: NSData, bundleOrNil: NSBundle): UINib; static nibWithNibNameBundle(name: string, bundleOrNil: NSBundle): UINib; instantiateWithOwnerOptions(ownerOrNil: any, optionsOrNil: NSDictionary): NSArray; } declare var UINibExternalObjects: string; declare var UINibProxiedObjectsKey: string; declare class UINotificationFeedbackGenerator extends UIFeedbackGenerator { static alloc(): UINotificationFeedbackGenerator; // inherited from NSObject static new(): UINotificationFeedbackGenerator; // inherited from NSObject notificationOccurred(notificationType: UINotificationFeedbackType): void; } declare const enum UINotificationFeedbackType { Success = 0, Warning = 1, Error = 2 } interface UIObjectRestoration { } declare var UIObjectRestoration: { prototype: UIObjectRestoration; objectWithRestorationIdentifierPathCoder(identifierComponents: NSArray, coder: NSCoder): UIStateRestoring; }; interface UIOffset { horizontal: number; vertical: number; } declare var UIOffset: interop.StructType; declare function UIOffsetFromString(string: string): UIOffset; declare var UIOffsetZero: UIOffset; declare class UIPageControl extends UIControl { static alloc(): UIPageControl; // inherited from NSObject static appearance(): UIPageControl; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIPageControl; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIPageControl; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIPageControl; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIPageControl; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIPageControl; // inherited from UIAppearance static new(): UIPageControl; // inherited from NSObject currentPage: number; currentPageIndicatorTintColor: UIColor; defersCurrentPageDisplay: boolean; hidesForSinglePage: boolean; numberOfPages: number; pageIndicatorTintColor: UIColor; sizeForNumberOfPages(pageCount: number): CGSize; updateCurrentPageDisplay(): void; } declare class UIPageViewController extends UIViewController { static alloc(): UIPageViewController; // inherited from NSObject static new(): UIPageViewController; // inherited from NSObject dataSource: UIPageViewControllerDataSource; delegate: UIPageViewControllerDelegate; doubleSided: boolean; readonly gestureRecognizers: NSArray; readonly navigationOrientation: UIPageViewControllerNavigationOrientation; readonly spineLocation: UIPageViewControllerSpineLocation; readonly transitionStyle: UIPageViewControllerTransitionStyle; readonly viewControllers: NSArray; constructor(o: { transitionStyle: UIPageViewControllerTransitionStyle; navigationOrientation: UIPageViewControllerNavigationOrientation; options: NSDictionary; }); initWithTransitionStyleNavigationOrientationOptions(style: UIPageViewControllerTransitionStyle, navigationOrientation: UIPageViewControllerNavigationOrientation, options: NSDictionary): this; setViewControllersDirectionAnimatedCompletion(viewControllers: NSArray, direction: UIPageViewControllerNavigationDirection, animated: boolean, completion: (p1: boolean) => void): void; } interface UIPageViewControllerDataSource extends NSObjectProtocol { pageViewControllerViewControllerAfterViewController(pageViewController: UIPageViewController, viewController: UIViewController): UIViewController; pageViewControllerViewControllerBeforeViewController(pageViewController: UIPageViewController, viewController: UIViewController): UIViewController; presentationCountForPageViewController?(pageViewController: UIPageViewController): number; presentationIndexForPageViewController?(pageViewController: UIPageViewController): number; } declare var UIPageViewControllerDataSource: { prototype: UIPageViewControllerDataSource; }; interface UIPageViewControllerDelegate extends NSObjectProtocol { pageViewControllerDidFinishAnimatingPreviousViewControllersTransitionCompleted?(pageViewController: UIPageViewController, finished: boolean, previousViewControllers: NSArray, completed: boolean): void; pageViewControllerPreferredInterfaceOrientationForPresentation?(pageViewController: UIPageViewController): UIInterfaceOrientation; pageViewControllerSpineLocationForInterfaceOrientation?(pageViewController: UIPageViewController, orientation: UIInterfaceOrientation): UIPageViewControllerSpineLocation; pageViewControllerSupportedInterfaceOrientations?(pageViewController: UIPageViewController): UIInterfaceOrientationMask; pageViewControllerWillTransitionToViewControllers?(pageViewController: UIPageViewController, pendingViewControllers: NSArray): void; } declare var UIPageViewControllerDelegate: { prototype: UIPageViewControllerDelegate; }; declare const enum UIPageViewControllerNavigationDirection { Forward = 0, Reverse = 1 } declare const enum UIPageViewControllerNavigationOrientation { Horizontal = 0, Vertical = 1 } declare var UIPageViewControllerOptionInterPageSpacingKey: string; declare var UIPageViewControllerOptionSpineLocationKey: string; declare const enum UIPageViewControllerSpineLocation { None = 0, Min = 1, Mid = 2, Max = 3 } declare const enum UIPageViewControllerTransitionStyle { PageCurl = 0, Scroll = 1 } declare class UIPanGestureRecognizer extends UIGestureRecognizer { static alloc(): UIPanGestureRecognizer; // inherited from NSObject static new(): UIPanGestureRecognizer; // inherited from NSObject maximumNumberOfTouches: number; minimumNumberOfTouches: number; setTranslationInView(translation: CGPoint, view: UIView): void; translationInView(view: UIView): CGPoint; velocityInView(view: UIView): CGPoint; } declare class UIPasteboard extends NSObject { static alloc(): UIPasteboard; // inherited from NSObject static new(): UIPasteboard; // inherited from NSObject static pasteboardWithNameCreate(pasteboardName: string, create: boolean): UIPasteboard; static pasteboardWithUniqueName(): UIPasteboard; static removePasteboardWithName(pasteboardName: string): void; URL: NSURL; URLs: NSArray; readonly changeCount: number; color: UIColor; colors: NSArray; readonly hasColors: boolean; readonly hasImages: boolean; readonly hasStrings: boolean; readonly hasURLs: boolean; image: UIImage; images: NSArray; items: NSArray>; readonly name: string; readonly numberOfItems: number; readonly pasteboardTypes: NSArray; readonly persistent: boolean; string: string; strings: NSArray; static readonly generalPasteboard: UIPasteboard; addItems(items: NSArray>): void; containsPasteboardTypes(pasteboardTypes: NSArray): boolean; containsPasteboardTypesInItemSet(pasteboardTypes: NSArray, itemSet: NSIndexSet): boolean; dataForPasteboardType(pasteboardType: string): NSData; dataForPasteboardTypeInItemSet(pasteboardType: string, itemSet: NSIndexSet): NSArray; itemSetWithPasteboardTypes(pasteboardTypes: NSArray): NSIndexSet; pasteboardTypesForItemSet(itemSet: NSIndexSet): NSArray>; setDataForPasteboardType(data: NSData, pasteboardType: string): void; setItemsOptions(items: NSArray>, options: NSDictionary): void; setPersistent(persistent: boolean): void; setValueForPasteboardType(value: any, pasteboardType: string): void; valueForPasteboardType(pasteboardType: string): any; valuesForPasteboardTypeInItemSet(pasteboardType: string, itemSet: NSIndexSet): NSArray; } declare var UIPasteboardChangedNotification: string; declare var UIPasteboardChangedTypesAddedKey: string; declare var UIPasteboardChangedTypesRemovedKey: string; declare var UIPasteboardNameFind: string; declare var UIPasteboardNameGeneral: string; declare var UIPasteboardOptionExpirationDate: string; declare var UIPasteboardOptionLocalOnly: string; declare var UIPasteboardRemovedNotification: string; declare var UIPasteboardTypeAutomatic: string; declare var UIPasteboardTypeListColor: NSArray; declare var UIPasteboardTypeListImage: NSArray; declare var UIPasteboardTypeListString: NSArray; declare var UIPasteboardTypeListURL: NSArray; declare class UIPercentDrivenInteractiveTransition extends NSObject implements UIViewControllerInteractiveTransitioning { static alloc(): UIPercentDrivenInteractiveTransition; // inherited from NSObject static new(): UIPercentDrivenInteractiveTransition; // inherited from NSObject completionCurve: UIViewAnimationCurve; completionSpeed: number; readonly duration: number; readonly percentComplete: number; timingCurve: UITimingCurveProvider; wantsInteractiveStart: boolean; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol cancelInteractiveTransition(): void; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; finishInteractiveTransition(): void; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; pauseInteractiveTransition(): void; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; startInteractiveTransition(transitionContext: UIViewControllerContextTransitioning): void; updateInteractiveTransition(percentComplete: number): void; } declare class UIPickerView extends UIView implements NSCoding { static alloc(): UIPickerView; // inherited from NSObject static appearance(): UIPickerView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIPickerView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIPickerView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIPickerView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIPickerView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIPickerView; // inherited from UIAppearance static new(): UIPickerView; // inherited from NSObject dataSource: UIPickerViewDataSource; delegate: UIPickerViewDelegate; readonly numberOfComponents: number; showsSelectionIndicator: boolean; constructor(o: { coder: NSCoder; }); // inherited from NSCoding encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; numberOfRowsInComponent(component: number): number; reloadAllComponents(): void; reloadComponent(component: number): void; rowSizeForComponent(component: number): CGSize; selectRowInComponentAnimated(row: number, component: number, animated: boolean): void; selectedRowInComponent(component: number): number; viewForRowForComponent(row: number, component: number): UIView; } interface UIPickerViewAccessibilityDelegate extends UIPickerViewDelegate { pickerViewAccessibilityHintForComponent?(pickerView: UIPickerView, component: number): string; pickerViewAccessibilityLabelForComponent?(pickerView: UIPickerView, component: number): string; } declare var UIPickerViewAccessibilityDelegate: { prototype: UIPickerViewAccessibilityDelegate; }; interface UIPickerViewDataSource extends NSObjectProtocol { numberOfComponentsInPickerView(pickerView: UIPickerView): number; pickerViewNumberOfRowsInComponent(pickerView: UIPickerView, component: number): number; } declare var UIPickerViewDataSource: { prototype: UIPickerViewDataSource; }; interface UIPickerViewDelegate extends NSObjectProtocol { pickerViewAttributedTitleForRowForComponent?(pickerView: UIPickerView, row: number, component: number): NSAttributedString; pickerViewDidSelectRowInComponent?(pickerView: UIPickerView, row: number, component: number): void; pickerViewRowHeightForComponent?(pickerView: UIPickerView, component: number): number; pickerViewTitleForRowForComponent?(pickerView: UIPickerView, row: number, component: number): string; pickerViewViewForRowForComponentReusingView?(pickerView: UIPickerView, row: number, component: number, view: UIView): UIView; pickerViewWidthForComponent?(pickerView: UIPickerView, component: number): number; } declare var UIPickerViewDelegate: { prototype: UIPickerViewDelegate; }; declare class UIPinchGestureRecognizer extends UIGestureRecognizer { static alloc(): UIPinchGestureRecognizer; // inherited from NSObject static new(): UIPinchGestureRecognizer; // inherited from NSObject scale: number; readonly velocity: number; } declare const enum UIPopoverArrowDirection { Up = 1, Down = 2, Left = 4, Right = 8, Any = 15, Unknown = 4294967295 } declare class UIPopoverBackgroundView extends UIView implements UIPopoverBackgroundViewMethods { static alloc(): UIPopoverBackgroundView; // inherited from NSObject static appearance(): UIPopoverBackgroundView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIPopoverBackgroundView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIPopoverBackgroundView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIPopoverBackgroundView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIPopoverBackgroundView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIPopoverBackgroundView; // inherited from UIAppearance static arrowBase(): number; static arrowHeight(): number; static contentViewInsets(): UIEdgeInsets; static new(): UIPopoverBackgroundView; // inherited from NSObject arrowDirection: UIPopoverArrowDirection; arrowOffset: number; static readonly wantsDefaultContentAppearance: boolean; } interface UIPopoverBackgroundViewMethods { } declare var UIPopoverBackgroundViewMethods: { prototype: UIPopoverBackgroundViewMethods; arrowBase(): number; arrowHeight(): number; contentViewInsets(): UIEdgeInsets; }; declare class UIPopoverController extends NSObject implements UIAppearanceContainer { static alloc(): UIPopoverController; // inherited from NSObject static new(): UIPopoverController; // inherited from NSObject backgroundColor: UIColor; contentViewController: UIViewController; delegate: UIPopoverControllerDelegate; passthroughViews: NSArray; readonly popoverArrowDirection: UIPopoverArrowDirection; popoverBackgroundViewClass: typeof NSObject; popoverContentSize: CGSize; popoverLayoutMargins: UIEdgeInsets; readonly popoverVisible: boolean; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { contentViewController: UIViewController; }); class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; dismissPopoverAnimated(animated: boolean): void; initWithContentViewController(viewController: UIViewController): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; presentPopoverFromBarButtonItemPermittedArrowDirectionsAnimated(item: UIBarButtonItem, arrowDirections: UIPopoverArrowDirection, animated: boolean): void; presentPopoverFromRectInViewPermittedArrowDirectionsAnimated(rect: CGRect, view: UIView, arrowDirections: UIPopoverArrowDirection, animated: boolean): void; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; setContentViewControllerAnimated(viewController: UIViewController, animated: boolean): void; setPopoverContentSizeAnimated(size: CGSize, animated: boolean): void; } interface UIPopoverControllerDelegate extends NSObjectProtocol { popoverControllerDidDismissPopover?(popoverController: UIPopoverController): void; popoverControllerShouldDismissPopover?(popoverController: UIPopoverController): boolean; popoverControllerWillRepositionPopoverToRectInView?(popoverController: UIPopoverController, rect: interop.Pointer | interop.Reference, view: interop.Pointer | interop.Reference): void; } declare var UIPopoverControllerDelegate: { prototype: UIPopoverControllerDelegate; }; declare class UIPopoverPresentationController extends UIPresentationController { static alloc(): UIPopoverPresentationController; // inherited from NSObject static new(): UIPopoverPresentationController; // inherited from NSObject readonly arrowDirection: UIPopoverArrowDirection; backgroundColor: UIColor; barButtonItem: UIBarButtonItem; canOverlapSourceViewRect: boolean; delegate: UIPopoverPresentationControllerDelegate; passthroughViews: NSArray; permittedArrowDirections: UIPopoverArrowDirection; popoverBackgroundViewClass: typeof NSObject; popoverLayoutMargins: UIEdgeInsets; sourceRect: CGRect; sourceView: UIView; } interface UIPopoverPresentationControllerDelegate extends UIAdaptivePresentationControllerDelegate { popoverPresentationControllerDidDismissPopover?(popoverPresentationController: UIPopoverPresentationController): void; popoverPresentationControllerShouldDismissPopover?(popoverPresentationController: UIPopoverPresentationController): boolean; popoverPresentationControllerWillRepositionPopoverToRectInView?(popoverPresentationController: UIPopoverPresentationController, rect: interop.Pointer | interop.Reference, view: interop.Pointer | interop.Reference): void; prepareForPopoverPresentation?(popoverPresentationController: UIPopoverPresentationController): void; } declare var UIPopoverPresentationControllerDelegate: { prototype: UIPopoverPresentationControllerDelegate; }; declare class UIPresentationController extends NSObject implements UIAppearanceContainer, UIContentContainer, UIFocusEnvironment, UITraitEnvironment { static alloc(): UIPresentationController; // inherited from NSObject static new(): UIPresentationController; // inherited from NSObject readonly adaptivePresentationStyle: UIModalPresentationStyle; readonly containerView: UIView; delegate: UIAdaptivePresentationControllerDelegate; readonly frameOfPresentedViewInContainerView: CGRect; overrideTraitCollection: UITraitCollection; readonly presentationStyle: UIModalPresentationStyle; readonly presentedView: UIView; readonly presentedViewController: UIViewController; readonly presentingViewController: UIViewController; readonly shouldPresentInFullscreen: boolean; readonly shouldRemovePresentersView: boolean; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly preferredContentSize: CGSize; // inherited from UIContentContainer readonly preferredFocusEnvironments: NSArray; // inherited from UIFocusEnvironment readonly preferredFocusedView: UIView; // inherited from UIFocusEnvironment readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly traitCollection: UITraitCollection; // inherited from UITraitEnvironment readonly // inherited from NSObjectProtocol constructor(o: { presentedViewController: UIViewController; presentingViewController: UIViewController; }); adaptivePresentationStyleForTraitCollection(traitCollection: UITraitCollection): UIModalPresentationStyle; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; containerViewDidLayoutSubviews(): void; containerViewWillLayoutSubviews(): void; didUpdateFocusInContextWithAnimationCoordinator(context: UIFocusUpdateContext, coordinator: UIFocusAnimationCoordinator): void; dismissalTransitionDidEnd(completed: boolean): void; dismissalTransitionWillBegin(): void; initWithPresentedViewControllerPresentingViewController(presentedViewController: UIViewController, presentingViewController: UIViewController): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; preferredContentSizeDidChangeForChildContentContainer(container: UIContentContainer): void; presentationTransitionDidEnd(completed: boolean): void; presentationTransitionWillBegin(): void; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; setNeedsFocusUpdate(): void; shouldUpdateFocusInContext(context: UIFocusUpdateContext): boolean; sizeForChildContentContainerWithParentContainerSize(container: UIContentContainer, parentSize: CGSize): CGSize; systemLayoutFittingSizeDidChangeForChildContentContainer(container: UIContentContainer): void; traitCollectionDidChange(previousTraitCollection: UITraitCollection): void; updateFocusIfNeeded(): void; viewWillTransitionToSizeWithTransitionCoordinator(size: CGSize, coordinator: UIViewControllerTransitionCoordinator): void; willTransitionToTraitCollectionWithTransitionCoordinator(newCollection: UITraitCollection, coordinator: UIViewControllerTransitionCoordinator): void; } declare class UIPress extends NSObject { static alloc(): UIPress; // inherited from NSObject static new(): UIPress; // inherited from NSObject readonly force: number; readonly gestureRecognizers: NSArray; readonly phase: UIPressPhase; readonly responder: UIResponder; readonly timestamp: number; readonly type: UIPressType; readonly window: UIWindow; } declare const enum UIPressPhase { Began = 0, Changed = 1, Stationary = 2, Ended = 3, Cancelled = 4 } declare const enum UIPressType { UpArrow = 0, DownArrow = 1, LeftArrow = 2, RightArrow = 3, Select = 4, Menu = 5, PlayPause = 6 } declare class UIPressesEvent extends UIEvent { static alloc(): UIPressesEvent; // inherited from NSObject static new(): UIPressesEvent; // inherited from NSObject readonly allPresses: NSSet; pressesForGestureRecognizer(gesture: UIGestureRecognizer): NSSet; } declare class UIPreviewAction extends NSObject implements NSCopying, UIPreviewActionItem { static actionWithTitleStyleHandler(title: string, style: UIPreviewActionStyle, handler: (p1: UIPreviewAction, p2: UIViewController) => void): UIPreviewAction; static alloc(): UIPreviewAction; // inherited from NSObject static new(): UIPreviewAction; // inherited from NSObject readonly handler: (p1: UIPreviewActionItem, p2: UIViewController) => void; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from UIPreviewActionItem readonly // inherited from NSObjectProtocol class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class UIPreviewActionGroup extends NSObject implements NSCopying, UIPreviewActionItem { static actionGroupWithTitleStyleActions(title: string, style: UIPreviewActionStyle, actions: NSArray): UIPreviewActionGroup; static alloc(): UIPreviewActionGroup; // inherited from NSObject static new(): UIPreviewActionGroup; // inherited from NSObject readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly title: string; // inherited from UIPreviewActionItem readonly // inherited from NSObjectProtocol class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } interface UIPreviewActionItem extends NSObjectProtocol { title: string; } declare var UIPreviewActionItem: { prototype: UIPreviewActionItem; }; declare const enum UIPreviewActionStyle { Default = 0, Selected = 1, Destructive = 2 } declare class UIPreviewInteraction extends NSObject { static alloc(): UIPreviewInteraction; // inherited from NSObject static new(): UIPreviewInteraction; // inherited from NSObject delegate: UIPreviewInteractionDelegate; readonly view: UIView; constructor(o: { view: UIView; }); cancelInteraction(): void; initWithView(view: UIView): this; locationInCoordinateSpace(coordinateSpace: UICoordinateSpace): CGPoint; } interface UIPreviewInteractionDelegate extends NSObjectProtocol { previewInteractionDidCancel(previewInteraction: UIPreviewInteraction): void; previewInteractionDidUpdateCommitTransitionEnded?(previewInteraction: UIPreviewInteraction, transitionProgress: number, ended: boolean): void; previewInteractionDidUpdatePreviewTransitionEnded(previewInteraction: UIPreviewInteraction, transitionProgress: number, ended: boolean): void; previewInteractionShouldBegin?(previewInteraction: UIPreviewInteraction): boolean; } declare var UIPreviewInteractionDelegate: { prototype: UIPreviewInteractionDelegate; }; declare var UIPrintErrorDomain: string; declare class UIPrintFormatter extends NSObject implements NSCopying { static alloc(): UIPrintFormatter; // inherited from NSObject static new(): UIPrintFormatter; // inherited from NSObject contentInsets: UIEdgeInsets; maximumContentHeight: number; maximumContentWidth: number; readonly pageCount: number; perPageContentInsets: UIEdgeInsets; readonly printPageRenderer: UIPrintPageRenderer; startPage: number; copyWithZone(zone: interop.Pointer | interop.Reference): any; drawInRectForPageAtIndex(rect: CGRect, pageIndex: number): void; rectForPageAtIndex(pageIndex: number): CGRect; removeFromPrintPageRenderer(): void; } declare class UIPrintInfo extends NSObject implements NSCoding, NSCopying { static alloc(): UIPrintInfo; // inherited from NSObject static new(): UIPrintInfo; // inherited from NSObject static printInfo(): UIPrintInfo; static printInfoWithDictionary(dictionary: NSDictionary): UIPrintInfo; readonly dictionaryRepresentation: NSDictionary; duplex: UIPrintInfoDuplex; jobName: string; orientation: UIPrintInfoOrientation; outputType: UIPrintInfoOutputType; printerID: string; constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; } declare const enum UIPrintInfoDuplex { None = 0, LongEdge = 1, ShortEdge = 2 } declare const enum UIPrintInfoOrientation { Portrait = 0, Landscape = 1 } declare const enum UIPrintInfoOutputType { General = 0, Photo = 1, Grayscale = 2, PhotoGrayscale = 3 } declare class UIPrintInteractionController extends NSObject { static alloc(): UIPrintInteractionController; // inherited from NSObject static canPrintData(data: NSData): boolean; static canPrintURL(url: NSURL): boolean; static new(): UIPrintInteractionController; // inherited from NSObject delegate: UIPrintInteractionControllerDelegate; printFormatter: UIPrintFormatter; printInfo: UIPrintInfo; printPageRenderer: UIPrintPageRenderer; readonly printPaper: UIPrintPaper; printingItem: any; printingItems: NSArray; showsNumberOfCopies: boolean; showsPageRange: boolean; showsPaperSelectionForLoadedPapers: boolean; static readonly printableUTIs: NSSet; static readonly printingAvailable: boolean; static readonly sharedPrintController: UIPrintInteractionController; dismissAnimated(animated: boolean): void; presentAnimatedCompletionHandler(animated: boolean, completion: (p1: UIPrintInteractionController, p2: boolean, p3: NSError) => void): boolean; presentFromBarButtonItemAnimatedCompletionHandler(item: UIBarButtonItem, animated: boolean, completion: (p1: UIPrintInteractionController, p2: boolean, p3: NSError) => void): boolean; presentFromRectInViewAnimatedCompletionHandler(rect: CGRect, view: UIView, animated: boolean, completion: (p1: UIPrintInteractionController, p2: boolean, p3: NSError) => void): boolean; printToPrinterCompletionHandler(printer: UIPrinter, completion: (p1: UIPrintInteractionController, p2: boolean, p3: NSError) => void): boolean; } interface UIPrintInteractionControllerDelegate extends NSObjectProtocol { printInteractionControllerChooseCutterBehavior?(printInteractionController: UIPrintInteractionController, availableBehaviors: NSArray): UIPrinterCutterBehavior; printInteractionControllerChoosePaper?(printInteractionController: UIPrintInteractionController, paperList: NSArray): UIPrintPaper; printInteractionControllerCutLengthForPaper?(printInteractionController: UIPrintInteractionController, paper: UIPrintPaper): number; printInteractionControllerDidDismissPrinterOptions?(printInteractionController: UIPrintInteractionController): void; printInteractionControllerDidFinishJob?(printInteractionController: UIPrintInteractionController): void; printInteractionControllerDidPresentPrinterOptions?(printInteractionController: UIPrintInteractionController): void; printInteractionControllerParentViewController?(printInteractionController: UIPrintInteractionController): UIViewController; printInteractionControllerWillDismissPrinterOptions?(printInteractionController: UIPrintInteractionController): void; printInteractionControllerWillPresentPrinterOptions?(printInteractionController: UIPrintInteractionController): void; printInteractionControllerWillStartJob?(printInteractionController: UIPrintInteractionController): void; } declare var UIPrintInteractionControllerDelegate: { prototype: UIPrintInteractionControllerDelegate; }; declare const UIPrintJobFailedError: number; declare const UIPrintNoContentError: number; declare class UIPrintPageRenderer extends NSObject { static alloc(): UIPrintPageRenderer; // inherited from NSObject static new(): UIPrintPageRenderer; // inherited from NSObject footerHeight: number; headerHeight: number; readonly numberOfPages: number; readonly paperRect: CGRect; printFormatters: NSArray; readonly printableRect: CGRect; addPrintFormatterStartingAtPageAtIndex(formatter: UIPrintFormatter, pageIndex: number): void; drawContentForPageAtIndexInRect(pageIndex: number, contentRect: CGRect): void; drawFooterForPageAtIndexInRect(pageIndex: number, footerRect: CGRect): void; drawHeaderForPageAtIndexInRect(pageIndex: number, headerRect: CGRect): void; drawPageAtIndexInRect(pageIndex: number, printableRect: CGRect): void; drawPrintFormatterForPageAtIndex(printFormatter: UIPrintFormatter, pageIndex: number): void; prepareForDrawingPages(range: NSRange): void; printFormattersForPageAtIndex(pageIndex: number): NSArray; } declare class UIPrintPaper extends NSObject { static alloc(): UIPrintPaper; // inherited from NSObject static bestPaperForPageSizeWithPapersFromArray(contentSize: CGSize, paperList: NSArray): UIPrintPaper; static new(): UIPrintPaper; // inherited from NSObject readonly paperSize: CGSize; readonly printableRect: CGRect; printRect(): CGRect; } declare const UIPrintUnknownImageFormatError: number; declare class UIPrinter extends NSObject { static alloc(): UIPrinter; // inherited from NSObject static new(): UIPrinter; // inherited from NSObject static printerWithURL(url: NSURL): UIPrinter; readonly URL: NSURL; readonly displayLocation: string; readonly displayName: string; readonly makeAndModel: string; readonly supportedJobTypes: UIPrinterJobTypes; readonly supportsColor: boolean; readonly supportsDuplex: boolean; contactPrinter(completionHandler: (p1: boolean) => void): void; } declare const enum UIPrinterCutterBehavior { NoCut = 0, PrinterDefault = 1, CutAfterEachPage = 2, CutAfterEachCopy = 3, CutAfterEachJob = 4 } declare const enum UIPrinterJobTypes { Unknown = 0, Document = 1, Envelope = 2, Label = 4, Photo = 8, Receipt = 16, Roll = 32, LargeFormat = 64, Postcard = 128 } declare class UIPrinterPickerController extends NSObject { static alloc(): UIPrinterPickerController; // inherited from NSObject static new(): UIPrinterPickerController; // inherited from NSObject static printerPickerControllerWithInitiallySelectedPrinter(printer: UIPrinter): UIPrinterPickerController; delegate: UIPrinterPickerControllerDelegate; readonly selectedPrinter: UIPrinter; dismissAnimated(animated: boolean): void; presentAnimatedCompletionHandler(animated: boolean, completion: (p1: UIPrinterPickerController, p2: boolean, p3: NSError) => void): boolean; presentFromBarButtonItemAnimatedCompletionHandler(item: UIBarButtonItem, animated: boolean, completion: (p1: UIPrinterPickerController, p2: boolean, p3: NSError) => void): boolean; presentFromRectInViewAnimatedCompletionHandler(rect: CGRect, view: UIView, animated: boolean, completion: (p1: UIPrinterPickerController, p2: boolean, p3: NSError) => void): boolean; } interface UIPrinterPickerControllerDelegate extends NSObjectProtocol { printerPickerControllerDidDismiss?(printerPickerController: UIPrinterPickerController): void; printerPickerControllerDidPresent?(printerPickerController: UIPrinterPickerController): void; printerPickerControllerDidSelectPrinter?(printerPickerController: UIPrinterPickerController): void; printerPickerControllerParentViewController?(printerPickerController: UIPrinterPickerController): UIViewController; printerPickerControllerShouldShowPrinter?(printerPickerController: UIPrinterPickerController, printer: UIPrinter): boolean; printerPickerControllerWillDismiss?(printerPickerController: UIPrinterPickerController): void; printerPickerControllerWillPresent?(printerPickerController: UIPrinterPickerController): void; } declare var UIPrinterPickerControllerDelegate: { prototype: UIPrinterPickerControllerDelegate; }; declare const UIPrintingNotAvailableError: number; declare class UIProgressView extends UIView implements NSCoding { static alloc(): UIProgressView; // inherited from NSObject static appearance(): UIProgressView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIProgressView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIProgressView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIProgressView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIProgressView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIProgressView; // inherited from UIAppearance static new(): UIProgressView; // inherited from NSObject observedProgress: NSProgress; progress: number; progressImage: UIImage; progressTintColor: UIColor; progressViewStyle: UIProgressViewStyle; trackImage: UIImage; trackTintColor: UIColor; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { progressViewStyle: UIProgressViewStyle; }); encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithProgressViewStyle(style: UIProgressViewStyle): this; setProgressAnimated(progress: number, animated: boolean): void; } declare const enum UIProgressViewStyle { Default = 0, Bar = 1 } declare class UIPushBehavior extends UIDynamicBehavior { static alloc(): UIPushBehavior; // inherited from NSObject static new(): UIPushBehavior; // inherited from NSObject active: boolean; angle: number; readonly items: NSArray; magnitude: number; readonly mode: UIPushBehaviorMode; pushDirection: CGVector; constructor(o: { items: NSArray; mode: UIPushBehaviorMode; }); addItem(item: UIDynamicItem): void; initWithItemsMode(items: NSArray, mode: UIPushBehaviorMode): this; removeItem(item: UIDynamicItem): void; setAngleMagnitude(angle: number, magnitude: number): void; setTargetOffsetFromCenterForItem(o: UIOffset, item: UIDynamicItem): void; targetOffsetFromCenterForItem(item: UIDynamicItem): UIOffset; } declare const enum UIPushBehaviorMode { Continuous = 0, Instantaneous = 1 } declare function UIRectClip(rect: CGRect): void; declare const enum UIRectCorner { TopLeft = 1, TopRight = 2, BottomLeft = 4, BottomRight = 8, AllCorners = 4294967295 } declare const enum UIRectEdge { None = 0, Top = 1, Left = 2, Bottom = 4, Right = 8, All = 15 } declare function UIRectFill(rect: CGRect): void; declare function UIRectFillUsingBlendMode(rect: CGRect, blendMode: CGBlendMode): void; declare function UIRectFrame(rect: CGRect): void; declare function UIRectFrameUsingBlendMode(rect: CGRect, blendMode: CGBlendMode): void; declare class UIReferenceLibraryViewController extends UIViewController { static alloc(): UIReferenceLibraryViewController; // inherited from NSObject static dictionaryHasDefinitionForTerm(term: string): boolean; static new(): UIReferenceLibraryViewController; // inherited from NSObject constructor(o: { term: string; }); initWithTerm(term: string): this; } declare class UIRefreshControl extends UIControl { static alloc(): UIRefreshControl; // inherited from NSObject static appearance(): UIRefreshControl; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIRefreshControl; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIRefreshControl; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIRefreshControl; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIRefreshControl; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIRefreshControl; // inherited from UIAppearance static new(): UIRefreshControl; // inherited from NSObject attributedTitle: NSAttributedString; readonly refreshing: boolean; beginRefreshing(): void; endRefreshing(): void; } declare class UIRegion extends NSObject implements NSCoding, NSCopying { static alloc(): UIRegion; // inherited from NSObject static new(): UIRegion; // inherited from NSObject static readonly infiniteRegion: UIRegion; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { radius: number; }); constructor(o: { size: CGSize; }); containsPoint(point: CGPoint): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithRadius(radius: number): this; initWithSize(size: CGSize): this; inverseRegion(): this; regionByDifferenceFromRegion(region: UIRegion): this; regionByIntersectionWithRegion(region: UIRegion): this; regionByUnionWithRegion(region: UIRegion): this; } declare const enum UIRemoteNotificationType { None = 0, Badge = 1, Sound = 2, Alert = 4, NewsstandContentAvailability = 8 } declare class UIResponder extends NSObject implements UIResponderStandardEditActions { static alloc(): UIResponder; // inherited from NSObject static clearTextInputContextIdentifier(identifier: string): void; static new(): UIResponder; // inherited from NSObject readonly canBecomeFirstResponder: boolean; readonly canResignFirstResponder: boolean; readonly inputAccessoryView: UIView; readonly inputAccessoryViewController: UIInputViewController; readonly inputAssistantItem: UITextInputAssistantItem; readonly inputView: UIView; readonly inputViewController: UIInputViewController; readonly isFirstResponder: boolean; readonly keyCommands: NSArray; readonly nextResponder: UIResponder; readonly textInputContextIdentifier: string; readonly textInputMode: UITextInputMode; readonly undoManager: NSUndoManager; userActivity: NSUserActivity; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol becomeFirstResponder(): boolean; canPerformActionWithSender(action: string, sender: any): boolean; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; cut(sender: any): void; decreaseSize(sender: any): void; delete(sender: any): void; increaseSize(sender: any): void; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; makeTextWritingDirectionLeftToRight(sender: any): void; makeTextWritingDirectionRightToLeft(sender: any): void; motionBeganWithEvent(motion: UIEventSubtype, event: UIEvent): void; motionCancelledWithEvent(motion: UIEventSubtype, event: UIEvent): void; motionEndedWithEvent(motion: UIEventSubtype, event: UIEvent): void; paste(sender: any): void; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; pressesBeganWithEvent(presses: NSSet, event: UIPressesEvent): void; pressesCancelledWithEvent(presses: NSSet, event: UIPressesEvent): void; pressesChangedWithEvent(presses: NSSet, event: UIPressesEvent): void; pressesEndedWithEvent(presses: NSSet, event: UIPressesEvent): void; reloadInputViews(): void; remoteControlReceivedWithEvent(event: UIEvent): void; resignFirstResponder(): boolean; respondsToSelector(aSelector: string): boolean; restoreUserActivityState(activity: NSUserActivity): void; retainCount(): number; select(sender: any): void; selectAll(sender: any): void; self(): this; targetForActionWithSender(action: string, sender: any): any; toggleBoldface(sender: any): void; toggleItalics(sender: any): void; toggleUnderline(sender: any): void; touchesBeganWithEvent(touches: NSSet, event: UIEvent): void; touchesCancelledWithEvent(touches: NSSet, event: UIEvent): void; touchesEndedWithEvent(touches: NSSet, event: UIEvent): void; touchesEstimatedPropertiesUpdated(touches: NSSet): void; touchesMovedWithEvent(touches: NSSet, event: UIEvent): void; updateUserActivityState(activity: NSUserActivity): void; } interface UIResponderStandardEditActions extends NSObjectProtocol { cut?(sender: any): void; decreaseSize?(sender: any): void; delete?(sender: any): void; increaseSize?(sender: any): void; makeTextWritingDirectionLeftToRight?(sender: any): void; makeTextWritingDirectionRightToLeft?(sender: any): void; paste?(sender: any): void; select?(sender: any): void; selectAll?(sender: any): void; toggleBoldface?(sender: any): void; toggleItalics?(sender: any): void; toggleUnderline?(sender: any): void; } declare var UIResponderStandardEditActions: { prototype: UIResponderStandardEditActions; }; declare const enum UIReturnKeyType { Default = 0, Go = 1, Google = 2, Join = 3, Next = 4, Route = 5, Search = 6, Send = 7, Yahoo = 8, Done = 9, EmergencyCall = 10, Continue = 11 } declare class UIRotationGestureRecognizer extends UIGestureRecognizer { static alloc(): UIRotationGestureRecognizer; // inherited from NSObject static new(): UIRotationGestureRecognizer; // inherited from NSObject rotation: number; readonly velocity: number; } declare function UISaveVideoAtPathToSavedPhotosAlbum(videoPath: string, completionTarget: any, completionSelector: string, contextInfo: interop.Pointer | interop.Reference): void; declare class UIScreen extends NSObject implements UITraitEnvironment { static alloc(): UIScreen; // inherited from NSObject static new(): UIScreen; // inherited from NSObject readonly applicationFrame: CGRect; readonly availableModes: NSArray; readonly bounds: CGRect; brightness: number; readonly coordinateSpace: UICoordinateSpace; currentMode: UIScreenMode; readonly fixedCoordinateSpace: UICoordinateSpace; readonly focusedItem: UIFocusItem; readonly focusedView: UIView; readonly mirroredScreen: UIScreen; readonly nativeBounds: CGRect; readonly nativeScale: number; overscanCompensation: UIScreenOverscanCompensation; readonly overscanCompensationInsets: UIEdgeInsets; readonly preferredMode: UIScreenMode; readonly scale: number; readonly supportsFocus: boolean; wantsSoftwareDimming: boolean; static readonly mainScreen: UIScreen; static readonly screens: NSArray; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly traitCollection: UITraitCollection; // inherited from UITraitEnvironment readonly // inherited from NSObjectProtocol class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; displayLinkWithTargetSelector(target: any, sel: string): CADisplayLink; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; snapshotViewAfterScreenUpdates(afterUpdates: boolean): UIView; traitCollectionDidChange(previousTraitCollection: UITraitCollection): void; } declare var UIScreenBrightnessDidChangeNotification: string; declare var UIScreenDidConnectNotification: string; declare var UIScreenDidDisconnectNotification: string; declare class UIScreenEdgePanGestureRecognizer extends UIPanGestureRecognizer { static alloc(): UIScreenEdgePanGestureRecognizer; // inherited from NSObject static new(): UIScreenEdgePanGestureRecognizer; // inherited from NSObject edges: UIRectEdge; } declare class UIScreenMode extends NSObject { static alloc(): UIScreenMode; // inherited from NSObject static new(): UIScreenMode; // inherited from NSObject readonly pixelAspectRatio: number; readonly size: CGSize; } declare var UIScreenModeDidChangeNotification: string; declare const enum UIScreenOverscanCompensation { Scale = 0, InsetBounds = 1, None = 2, InsetApplicationFrame = 2 } declare class UIScrollView extends UIView implements NSCoding { static alloc(): UIScrollView; // inherited from NSObject static appearance(): UIScrollView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIScrollView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIScrollView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIScrollView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIScrollView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIScrollView; // inherited from UIAppearance static new(): UIScrollView; // inherited from NSObject alwaysBounceHorizontal: boolean; alwaysBounceVertical: boolean; bounces: boolean; bouncesZoom: boolean; canCancelContentTouches: boolean; contentInset: UIEdgeInsets; contentOffset: CGPoint; contentSize: CGSize; readonly decelerating: boolean; decelerationRate: number; delaysContentTouches: boolean; delegate: UIScrollViewDelegate; directionalLockEnabled: boolean; readonly dragging: boolean; indicatorStyle: UIScrollViewIndicatorStyle; keyboardDismissMode: UIScrollViewKeyboardDismissMode; maximumZoomScale: number; minimumZoomScale: number; pagingEnabled: boolean; readonly panGestureRecognizer: UIPanGestureRecognizer; readonly pinchGestureRecognizer: UIPinchGestureRecognizer; refreshControl: UIRefreshControl; scrollEnabled: boolean; scrollIndicatorInsets: UIEdgeInsets; scrollsToTop: boolean; showsHorizontalScrollIndicator: boolean; showsVerticalScrollIndicator: boolean; readonly tracking: boolean; readonly zoomBouncing: boolean; zoomScale: number; readonly zooming: boolean; constructor(o: { coder: NSCoder; }); // inherited from NSCoding encodeWithCoder(aCoder: NSCoder): void; flashScrollIndicators(): void; initWithCoder(aDecoder: NSCoder): this; scrollRectToVisibleAnimated(rect: CGRect, animated: boolean): void; setContentOffsetAnimated(contentOffset: CGPoint, animated: boolean): void; setZoomScaleAnimated(scale: number, animated: boolean): void; touchesShouldBeginWithEventInContentView(touches: NSSet, event: UIEvent, view: UIView): boolean; touchesShouldCancelInContentView(view: UIView): boolean; zoomToRectAnimated(rect: CGRect, animated: boolean): void; } interface UIScrollViewAccessibilityDelegate extends UIScrollViewDelegate { accessibilityScrollStatusForScrollView?(scrollView: UIScrollView): string; } declare var UIScrollViewAccessibilityDelegate: { prototype: UIScrollViewAccessibilityDelegate; }; declare var UIScrollViewDecelerationRateFast: number; declare var UIScrollViewDecelerationRateNormal: number; interface UIScrollViewDelegate extends NSObjectProtocol { scrollViewDidEndDecelerating?(scrollView: UIScrollView): void; scrollViewDidEndDraggingWillDecelerate?(scrollView: UIScrollView, decelerate: boolean): void; scrollViewDidEndScrollingAnimation?(scrollView: UIScrollView): void; scrollViewDidEndZoomingWithViewAtScale?(scrollView: UIScrollView, view: UIView, scale: number): void; scrollViewDidScroll?(scrollView: UIScrollView): void; scrollViewDidScrollToTop?(scrollView: UIScrollView): void; scrollViewDidZoom?(scrollView: UIScrollView): void; scrollViewShouldScrollToTop?(scrollView: UIScrollView): boolean; scrollViewWillBeginDecelerating?(scrollView: UIScrollView): void; scrollViewWillBeginDragging?(scrollView: UIScrollView): void; scrollViewWillBeginZoomingWithView?(scrollView: UIScrollView, view: UIView): void; scrollViewWillEndDraggingWithVelocityTargetContentOffset?(scrollView: UIScrollView, velocity: CGPoint, targetContentOffset: interop.Pointer | interop.Reference): void; viewForZoomingInScrollView?(scrollView: UIScrollView): UIView; } declare var UIScrollViewDelegate: { prototype: UIScrollViewDelegate; }; declare const enum UIScrollViewIndicatorStyle { Default = 0, Black = 1, White = 2 } declare const enum UIScrollViewKeyboardDismissMode { None = 0, OnDrag = 1, Interactive = 2 } declare class UISearchBar extends UIView implements UIBarPositioning, UITextInputTraits { static alloc(): UISearchBar; // inherited from NSObject static appearance(): UISearchBar; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UISearchBar; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UISearchBar; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UISearchBar; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UISearchBar; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UISearchBar; // inherited from UIAppearance static new(): UISearchBar; // inherited from NSObject backgroundImage: UIImage; barStyle: UIBarStyle; barTintColor: UIColor; delegate: UISearchBarDelegate; inputAccessoryView: UIView; placeholder: string; prompt: string; scopeBarBackgroundImage: UIImage; scopeButtonTitles: NSArray; searchBarStyle: UISearchBarStyle; searchFieldBackgroundPositionAdjustment: UIOffset; searchResultsButtonSelected: boolean; searchTextPositionAdjustment: UIOffset; selectedScopeButtonIndex: number; showsBookmarkButton: boolean; showsCancelButton: boolean; showsScopeBar: boolean; showsSearchResultsButton: boolean; text: string; translucent: boolean; autocapitalizationType: UITextAutocapitalizationType; // inherited from UITextInputTraits autocorrectionType: UITextAutocorrectionType; // inherited from UITextInputTraits readonly barPosition: UIBarPosition; // inherited from UIBarPositioning readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol enablesReturnKeyAutomatically: boolean; // inherited from UITextInputTraits readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol keyboardAppearance: UIKeyboardAppearance; // inherited from UITextInputTraits keyboardType: UIKeyboardType; // inherited from UITextInputTraits returnKeyType: UIReturnKeyType; // inherited from UITextInputTraits secureTextEntry: boolean; // inherited from UITextInputTraits spellCheckingType: UITextSpellCheckingType; // inherited from UITextInputTraits readonly superclass: typeof NSObject; // inherited from NSObjectProtocol textContentType: string; // inherited from UITextInputTraits readonly // inherited from NSObjectProtocol backgroundImageForBarPositionBarMetrics(barPosition: UIBarPosition, barMetrics: UIBarMetrics): UIImage; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; imageForSearchBarIconState(icon: UISearchBarIcon, state: UIControlState): UIImage; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; positionAdjustmentForSearchBarIcon(icon: UISearchBarIcon): UIOffset; respondsToSelector(aSelector: string): boolean; retainCount(): number; scopeBarButtonBackgroundImageForState(state: UIControlState): UIImage; scopeBarButtonDividerImageForLeftSegmentStateRightSegmentState(leftState: UIControlState, rightState: UIControlState): UIImage; scopeBarButtonTitleTextAttributesForState(state: UIControlState): NSDictionary; searchFieldBackgroundImageForState(state: UIControlState): UIImage; self(): this; setBackgroundImageForBarPositionBarMetrics(backgroundImage: UIImage, barPosition: UIBarPosition, barMetrics: UIBarMetrics): void; setImageForSearchBarIconState(iconImage: UIImage, icon: UISearchBarIcon, state: UIControlState): void; setPositionAdjustmentForSearchBarIcon(adjustment: UIOffset, icon: UISearchBarIcon): void; setScopeBarButtonBackgroundImageForState(backgroundImage: UIImage, state: UIControlState): void; setScopeBarButtonDividerImageForLeftSegmentStateRightSegmentState(dividerImage: UIImage, leftState: UIControlState, rightState: UIControlState): void; setScopeBarButtonTitleTextAttributesForState(attributes: NSDictionary, state: UIControlState): void; setSearchFieldBackgroundImageForState(backgroundImage: UIImage, state: UIControlState): void; setShowsCancelButtonAnimated(showsCancelButton: boolean, animated: boolean): void; } interface UISearchBarDelegate extends UIBarPositioningDelegate { searchBarBookmarkButtonClicked?(searchBar: UISearchBar): void; searchBarCancelButtonClicked?(searchBar: UISearchBar): void; searchBarResultsListButtonClicked?(searchBar: UISearchBar): void; searchBarSearchButtonClicked?(searchBar: UISearchBar): void; searchBarSelectedScopeButtonIndexDidChange?(searchBar: UISearchBar, selectedScope: number): void; searchBarShouldBeginEditing?(searchBar: UISearchBar): boolean; searchBarShouldChangeTextInRangeReplacementText?(searchBar: UISearchBar, range: NSRange, text: string): boolean; searchBarShouldEndEditing?(searchBar: UISearchBar): boolean; searchBarTextDidBeginEditing?(searchBar: UISearchBar): void; searchBarTextDidChange?(searchBar: UISearchBar, searchText: string): void; searchBarTextDidEndEditing?(searchBar: UISearchBar): void; } declare var UISearchBarDelegate: { prototype: UISearchBarDelegate; }; declare const enum UISearchBarIcon { Search = 0, Clear = 1, Bookmark = 2, ResultsList = 3 } declare const enum UISearchBarStyle { Default = 0, Prominent = 1, Minimal = 2 } declare class UISearchContainerViewController extends UIViewController { static alloc(): UISearchContainerViewController; // inherited from NSObject static new(): UISearchContainerViewController; // inherited from NSObject readonly searchController: UISearchController; constructor(o: { searchController: UISearchController; }); initWithSearchController(searchController: UISearchController): this; } declare class UISearchController extends UIViewController implements UIViewControllerAnimatedTransitioning, UIViewControllerTransitioningDelegate { static alloc(): UISearchController; // inherited from NSObject static new(): UISearchController; // inherited from NSObject active: boolean; delegate: UISearchControllerDelegate; dimsBackgroundDuringPresentation: boolean; hidesNavigationBarDuringPresentation: boolean; obscuresBackgroundDuringPresentation: boolean; readonly searchBar: UISearchBar; readonly searchResultsController: UIViewController; searchResultsUpdater: UISearchResultsUpdating; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { searchResultsController: UIViewController; }); animateTransition(transitionContext: UIViewControllerContextTransitioning): void; animationControllerForDismissedController(dismissed: UIViewController): UIViewControllerAnimatedTransitioning; animationControllerForPresentedControllerPresentingControllerSourceController(presented: UIViewController, presenting: UIViewController, source: UIViewController): UIViewControllerAnimatedTransitioning; animationEnded(transitionCompleted: boolean): void; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; initWithSearchResultsController(searchResultsController: UIViewController): this; interactionControllerForDismissal(animator: UIViewControllerAnimatedTransitioning): UIViewControllerInteractiveTransitioning; interactionControllerForPresentation(animator: UIViewControllerAnimatedTransitioning): UIViewControllerInteractiveTransitioning; interruptibleAnimatorForTransition(transitionContext: UIViewControllerContextTransitioning): UIViewImplicitlyAnimating; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; presentationControllerForPresentedViewControllerPresentingViewControllerSourceViewController(presented: UIViewController, presenting: UIViewController, source: UIViewController): UIPresentationController; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; transitionDuration(transitionContext: UIViewControllerContextTransitioning): number; } interface UISearchControllerDelegate extends NSObjectProtocol { didDismissSearchController?(searchController: UISearchController): void; didPresentSearchController?(searchController: UISearchController): void; presentSearchController?(searchController: UISearchController): void; willDismissSearchController?(searchController: UISearchController): void; willPresentSearchController?(searchController: UISearchController): void; } declare var UISearchControllerDelegate: { prototype: UISearchControllerDelegate; }; declare class UISearchDisplayController extends NSObject { static alloc(): UISearchDisplayController; // inherited from NSObject static new(): UISearchDisplayController; // inherited from NSObject active: boolean; delegate: UISearchDisplayDelegate; displaysSearchBarInNavigationBar: boolean; readonly navigationItem: UINavigationItem; readonly searchBar: UISearchBar; readonly searchContentsController: UIViewController; searchResultsDataSource: UITableViewDataSource; searchResultsDelegate: UITableViewDelegate; readonly searchResultsTableView: UITableView; searchResultsTitle: string; constructor(o: { searchBar: UISearchBar; contentsController: UIViewController; }); initWithSearchBarContentsController(searchBar: UISearchBar, viewController: UIViewController): this; setActiveAnimated(visible: boolean, animated: boolean): void; } interface UISearchDisplayDelegate extends NSObjectProtocol { searchDisplayControllerDidBeginSearch?(controller: UISearchDisplayController): void; searchDisplayControllerDidEndSearch?(controller: UISearchDisplayController): void; searchDisplayControllerDidHideSearchResultsTableView?(controller: UISearchDisplayController, tableView: UITableView): void; searchDisplayControllerDidLoadSearchResultsTableView?(controller: UISearchDisplayController, tableView: UITableView): void; searchDisplayControllerDidShowSearchResultsTableView?(controller: UISearchDisplayController, tableView: UITableView): void; searchDisplayControllerShouldReloadTableForSearchScope?(controller: UISearchDisplayController, searchOption: number): boolean; searchDisplayControllerShouldReloadTableForSearchString?(controller: UISearchDisplayController, searchString: string): boolean; searchDisplayControllerWillBeginSearch?(controller: UISearchDisplayController): void; searchDisplayControllerWillEndSearch?(controller: UISearchDisplayController): void; searchDisplayControllerWillHideSearchResultsTableView?(controller: UISearchDisplayController, tableView: UITableView): void; searchDisplayControllerWillShowSearchResultsTableView?(controller: UISearchDisplayController, tableView: UITableView): void; searchDisplayControllerWillUnloadSearchResultsTableView?(controller: UISearchDisplayController, tableView: UITableView): void; } declare var UISearchDisplayDelegate: { prototype: UISearchDisplayDelegate; }; interface UISearchResultsUpdating extends NSObjectProtocol { updateSearchResultsForSearchController(searchController: UISearchController): void; } declare var UISearchResultsUpdating: { prototype: UISearchResultsUpdating; }; declare class UISegmentedControl extends UIControl implements NSCoding { static alloc(): UISegmentedControl; // inherited from NSObject static appearance(): UISegmentedControl; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UISegmentedControl; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UISegmentedControl; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UISegmentedControl; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UISegmentedControl; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UISegmentedControl; // inherited from UIAppearance static new(): UISegmentedControl; // inherited from NSObject apportionsSegmentWidthsByContent: boolean; momentary: boolean; readonly numberOfSegments: number; segmentedControlStyle: UISegmentedControlStyle; selectedSegmentIndex: number; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { items: NSArray; }); backgroundImageForStateBarMetrics(state: UIControlState, barMetrics: UIBarMetrics): UIImage; contentOffsetForSegmentAtIndex(segment: number): CGSize; contentPositionAdjustmentForSegmentTypeBarMetrics(leftCenterRightOrAlone: UISegmentedControlSegment, barMetrics: UIBarMetrics): UIOffset; dividerImageForLeftSegmentStateRightSegmentStateBarMetrics(leftState: UIControlState, rightState: UIControlState, barMetrics: UIBarMetrics): UIImage; encodeWithCoder(aCoder: NSCoder): void; imageForSegmentAtIndex(segment: number): UIImage; initWithCoder(aDecoder: NSCoder): this; initWithItems(items: NSArray): this; insertSegmentWithImageAtIndexAnimated(image: UIImage, segment: number, animated: boolean): void; insertSegmentWithTitleAtIndexAnimated(title: string, segment: number, animated: boolean): void; isEnabledForSegmentAtIndex(segment: number): boolean; removeAllSegments(): void; removeSegmentAtIndexAnimated(segment: number, animated: boolean): void; setBackgroundImageForStateBarMetrics(backgroundImage: UIImage, state: UIControlState, barMetrics: UIBarMetrics): void; setContentOffsetForSegmentAtIndex(offset: CGSize, segment: number): void; setContentPositionAdjustmentForSegmentTypeBarMetrics(adjustment: UIOffset, leftCenterRightOrAlone: UISegmentedControlSegment, barMetrics: UIBarMetrics): void; setDividerImageForLeftSegmentStateRightSegmentStateBarMetrics(dividerImage: UIImage, leftState: UIControlState, rightState: UIControlState, barMetrics: UIBarMetrics): void; setEnabledForSegmentAtIndex(enabled: boolean, segment: number): void; setImageForSegmentAtIndex(image: UIImage, segment: number): void; setTitleForSegmentAtIndex(title: string, segment: number): void; setTitleTextAttributesForState(attributes: NSDictionary, state: UIControlState): void; setWidthForSegmentAtIndex(width: number, segment: number): void; titleForSegmentAtIndex(segment: number): string; titleTextAttributesForState(state: UIControlState): NSDictionary; widthForSegmentAtIndex(segment: number): number; } declare const UISegmentedControlNoSegment: number; declare const enum UISegmentedControlSegment { Any = 0, Left = 1, Center = 2, Right = 3, Alone = 4 } declare const enum UISegmentedControlStyle { Plain = 0, Bordered = 1, Bar = 2, Bezeled = 3 } declare class UISelectionFeedbackGenerator extends UIFeedbackGenerator { static alloc(): UISelectionFeedbackGenerator; // inherited from NSObject static new(): UISelectionFeedbackGenerator; // inherited from NSObject selectionChanged(): void; } declare const enum UISemanticContentAttribute { Unspecified = 0, Playback = 1, Spatial = 2, ForceLeftToRight = 3, ForceRightToLeft = 4 } declare class UISimpleTextPrintFormatter extends UIPrintFormatter { static alloc(): UISimpleTextPrintFormatter; // inherited from NSObject static new(): UISimpleTextPrintFormatter; // inherited from NSObject attributedText: NSAttributedString; color: UIColor; font: UIFont; text: string; textAlignment: NSTextAlignment; constructor(o: { attributedText: NSAttributedString; }); constructor(o: { text: string; }); initWithAttributedText(attributedText: NSAttributedString): this; initWithText(text: string): this; } declare class UISlider extends UIControl implements NSCoding { static alloc(): UISlider; // inherited from NSObject static appearance(): UISlider; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UISlider; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UISlider; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UISlider; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UISlider; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UISlider; // inherited from UIAppearance static new(): UISlider; // inherited from NSObject continuous: boolean; readonly currentMaximumTrackImage: UIImage; readonly currentMinimumTrackImage: UIImage; readonly currentThumbImage: UIImage; maximumTrackTintColor: UIColor; maximumValue: number; maximumValueImage: UIImage; minimumTrackTintColor: UIColor; minimumValue: number; minimumValueImage: UIImage; thumbTintColor: UIColor; value: number; constructor(o: { coder: NSCoder; }); // inherited from NSCoding encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; maximumTrackImageForState(state: UIControlState): UIImage; maximumValueImageRectForBounds(bounds: CGRect): CGRect; minimumTrackImageForState(state: UIControlState): UIImage; minimumValueImageRectForBounds(bounds: CGRect): CGRect; setMaximumTrackImageForState(image: UIImage, state: UIControlState): void; setMinimumTrackImageForState(image: UIImage, state: UIControlState): void; setThumbImageForState(image: UIImage, state: UIControlState): void; setValueAnimated(value: number, animated: boolean): void; thumbImageForState(state: UIControlState): UIImage; thumbRectForBoundsTrackRectValue(bounds: CGRect, rect: CGRect, value: number): CGRect; trackRectForBounds(bounds: CGRect): CGRect; } declare class UISnapBehavior extends UIDynamicBehavior { static alloc(): UISnapBehavior; // inherited from NSObject static new(): UISnapBehavior; // inherited from NSObject damping: number; snapPoint: CGPoint; constructor(o: { item: UIDynamicItem; snapToPoint: CGPoint; }); initWithItemSnapToPoint(item: UIDynamicItem, point: CGPoint): this; } declare class UISplitViewController extends UIViewController { static alloc(): UISplitViewController; // inherited from NSObject static new(): UISplitViewController; // inherited from NSObject readonly collapsed: boolean; delegate: UISplitViewControllerDelegate; readonly displayMode: UISplitViewControllerDisplayMode; readonly displayModeButtonItem: UIBarButtonItem; maximumPrimaryColumnWidth: number; minimumPrimaryColumnWidth: number; preferredDisplayMode: UISplitViewControllerDisplayMode; preferredPrimaryColumnWidthFraction: number; presentsWithGesture: boolean; readonly primaryColumnWidth: number; viewControllers: NSArray; } declare var UISplitViewControllerAutomaticDimension: number; interface UISplitViewControllerDelegate { primaryViewControllerForCollapsingSplitViewController?(splitViewController: UISplitViewController): UIViewController; primaryViewControllerForExpandingSplitViewController?(splitViewController: UISplitViewController): UIViewController; splitViewControllerCollapseSecondaryViewControllerOntoPrimaryViewController?(splitViewController: UISplitViewController, secondaryViewController: UIViewController, primaryViewController: UIViewController): boolean; splitViewControllerPopoverControllerWillPresentViewController?(svc: UISplitViewController, pc: UIPopoverController, aViewController: UIViewController): void; splitViewControllerPreferredInterfaceOrientationForPresentation?(splitViewController: UISplitViewController): UIInterfaceOrientation; splitViewControllerSeparateSecondaryViewControllerFromPrimaryViewController?(splitViewController: UISplitViewController, primaryViewController: UIViewController): UIViewController; splitViewControllerShouldHideViewControllerInOrientation?(svc: UISplitViewController, vc: UIViewController, orientation: UIInterfaceOrientation): boolean; splitViewControllerShowDetailViewControllerSender?(splitViewController: UISplitViewController, vc: UIViewController, sender: any): boolean; splitViewControllerShowViewControllerSender?(splitViewController: UISplitViewController, vc: UIViewController, sender: any): boolean; splitViewControllerSupportedInterfaceOrientations?(splitViewController: UISplitViewController): UIInterfaceOrientationMask; splitViewControllerWillChangeToDisplayMode?(svc: UISplitViewController, displayMode: UISplitViewControllerDisplayMode): void; splitViewControllerWillHideViewControllerWithBarButtonItemForPopoverController?(svc: UISplitViewController, aViewController: UIViewController, barButtonItem: UIBarButtonItem, pc: UIPopoverController): void; splitViewControllerWillShowViewControllerInvalidatingBarButtonItem?(svc: UISplitViewController, aViewController: UIViewController, barButtonItem: UIBarButtonItem): void; targetDisplayModeForActionInSplitViewController?(svc: UISplitViewController): UISplitViewControllerDisplayMode; } declare var UISplitViewControllerDelegate: { prototype: UISplitViewControllerDelegate; }; declare const enum UISplitViewControllerDisplayMode { Automatic = 0, PrimaryHidden = 1, AllVisible = 2, PrimaryOverlay = 3 } declare class UISpringTimingParameters extends NSObject implements UITimingCurveProvider { static alloc(): UISpringTimingParameters; // inherited from NSObject static new(): UISpringTimingParameters; // inherited from NSObject readonly initialVelocity: CGVector; readonly cubicTimingParameters: UICubicTimingParameters; // inherited from UITimingCurveProvider readonly springTimingParameters: UISpringTimingParameters; // inherited from UITimingCurveProvider readonly timingCurveType: UITimingCurveType; // inherited from UITimingCurveProvider constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { dampingRatio: number; }); constructor(o: { dampingRatio: number; initialVelocity: CGVector; }); constructor(o: { mass: number; stiffness: number; damping: number; initialVelocity: CGVector; }); copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithDampingRatio(ratio: number): this; initWithDampingRatioInitialVelocity(ratio: number, velocity: CGVector): this; initWithMassStiffnessDampingInitialVelocity(mass: number, stiffness: number, damping: number, velocity: CGVector): this; } declare class UIStackView extends UIView { static alloc(): UIStackView; // inherited from NSObject static appearance(): UIStackView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIStackView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIStackView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIStackView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIStackView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIStackView; // inherited from UIAppearance static new(): UIStackView; // inherited from NSObject alignment: UIStackViewAlignment; readonly arrangedSubviews: NSArray; axis: UILayoutConstraintAxis; baselineRelativeArrangement: boolean; distribution: UIStackViewDistribution; layoutMarginsRelativeArrangement: boolean; spacing: number; constructor(o: { arrangedSubviews: NSArray; }); addArrangedSubview(view: UIView): void; initWithArrangedSubviews(views: NSArray): this; insertArrangedSubviewAtIndex(view: UIView, stackIndex: number): void; removeArrangedSubview(view: UIView): void; } declare const enum UIStackViewAlignment { Fill = 0, Leading = 1, Top = 1, FirstBaseline = 2, Center = 3, Trailing = 4, Bottom = 4, LastBaseline = 5 } declare const enum UIStackViewDistribution { Fill = 0, FillEqually = 1, FillProportionally = 2, EqualSpacing = 3, EqualCentering = 4 } declare var UIStateRestorationViewControllerStoryboardKey: string; interface UIStateRestoring extends NSObjectProtocol { objectRestorationClass?: typeof NSObject; restorationParent?: UIStateRestoring; applicationFinishedRestoringState?(): void; decodeRestorableStateWithCoder?(coder: NSCoder): void; encodeRestorableStateWithCoder?(coder: NSCoder): void; } declare var UIStateRestoring: { prototype: UIStateRestoring; }; declare const enum UIStatusBarAnimation { None = 0, Fade = 1, Slide = 2 } declare const enum UIStatusBarStyle { Default = 0, LightContent = 1, BlackTranslucent = 1, BlackOpaque = 2 } declare class UIStepper extends UIControl { static alloc(): UIStepper; // inherited from NSObject static appearance(): UIStepper; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIStepper; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIStepper; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIStepper; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIStepper; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIStepper; // inherited from UIAppearance static new(): UIStepper; // inherited from NSObject autorepeat: boolean; continuous: boolean; maximumValue: number; minimumValue: number; stepValue: number; value: number; wraps: boolean; backgroundImageForState(state: UIControlState): UIImage; decrementImageForState(state: UIControlState): UIImage; dividerImageForLeftSegmentStateRightSegmentState(state: UIControlState, state1: UIControlState): UIImage; incrementImageForState(state: UIControlState): UIImage; setBackgroundImageForState(image: UIImage, state: UIControlState): void; setDecrementImageForState(image: UIImage, state: UIControlState): void; setDividerImageForLeftSegmentStateRightSegmentState(image: UIImage, leftState: UIControlState, rightState: UIControlState): void; setIncrementImageForState(image: UIImage, state: UIControlState): void; } declare class UIStoryboard extends NSObject { static alloc(): UIStoryboard; // inherited from NSObject static new(): UIStoryboard; // inherited from NSObject static storyboardWithNameBundle(name: string, storyboardBundleOrNil: NSBundle): UIStoryboard; instantiateInitialViewController(): UIViewController; instantiateViewControllerWithIdentifier(identifier: string): UIViewController; } declare class UIStoryboardPopoverSegue extends UIStoryboardSegue { static alloc(): UIStoryboardPopoverSegue; // inherited from NSObject static new(): UIStoryboardPopoverSegue; // inherited from NSObject static segueWithIdentifierSourceDestinationPerformHandler(identifier: string, source: UIViewController, destination: UIViewController, performHandler: () => void): UIStoryboardPopoverSegue; // inherited from UIStoryboardSegue readonly popoverController: UIPopoverController; } declare class UIStoryboardSegue extends NSObject { static alloc(): UIStoryboardSegue; // inherited from NSObject static new(): UIStoryboardSegue; // inherited from NSObject static segueWithIdentifierSourceDestinationPerformHandler(identifier: string, source: UIViewController, destination: UIViewController, performHandler: () => void): UIStoryboardSegue; readonly destinationViewController: UIViewController; readonly identifier: string; readonly sourceViewController: UIViewController; constructor(o: { identifier: string; source: UIViewController; destination: UIViewController; }); initWithIdentifierSourceDestination(identifier: string, source: UIViewController, destination: UIViewController): this; perform(): void; } declare class UIStoryboardUnwindSegueSource extends NSObject { static alloc(): UIStoryboardUnwindSegueSource; // inherited from NSObject static new(): UIStoryboardUnwindSegueSource; // inherited from NSObject readonly sender: any; readonly sourceViewController: UIViewController; readonly unwindAction: string; } declare class UISwipeGestureRecognizer extends UIGestureRecognizer { static alloc(): UISwipeGestureRecognizer; // inherited from NSObject static new(): UISwipeGestureRecognizer; // inherited from NSObject direction: UISwipeGestureRecognizerDirection; numberOfTouchesRequired: number; } declare const enum UISwipeGestureRecognizerDirection { Right = 1, Left = 2, Up = 4, Down = 8 } declare class UISwitch extends UIControl implements NSCoding { static alloc(): UISwitch; // inherited from NSObject static appearance(): UISwitch; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UISwitch; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UISwitch; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UISwitch; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UISwitch; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UISwitch; // inherited from UIAppearance static new(): UISwitch; // inherited from NSObject offImage: UIImage; on: boolean; onImage: UIImage; onTintColor: UIColor; thumbTintColor: UIColor; constructor(o: { coder: NSCoder; }); // inherited from NSCoding encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; setOnAnimated(on: boolean, animated: boolean): void; } declare const enum UISystemAnimation { Delete = 0 } declare class UITabBar extends UIView { static alloc(): UITabBar; // inherited from NSObject static appearance(): UITabBar; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UITabBar; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UITabBar; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UITabBar; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UITabBar; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UITabBar; // inherited from UIAppearance static new(): UITabBar; // inherited from NSObject backgroundImage: UIImage; barStyle: UIBarStyle; barTintColor: UIColor; readonly customizing: boolean; delegate: UITabBarDelegate; itemPositioning: UITabBarItemPositioning; itemSpacing: number; itemWidth: number; items: NSArray; selectedImageTintColor: UIColor; selectedItem: UITabBarItem; selectionIndicatorImage: UIImage; shadowImage: UIImage; translucent: boolean; unselectedItemTintColor: UIColor; beginCustomizingItems(items: NSArray): void; endCustomizingAnimated(animated: boolean): boolean; setItemsAnimated(items: NSArray, animated: boolean): void; } declare class UITabBarController extends UIViewController implements NSCoding, UITabBarDelegate { static alloc(): UITabBarController; // inherited from NSObject static new(): UITabBarController; // inherited from NSObject customizableViewControllers: NSArray; delegate: UITabBarControllerDelegate; readonly moreNavigationController: UINavigationController; selectedIndex: number; selectedViewController: UIViewController; readonly tabBar: UITabBar; viewControllers: NSArray; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { coder: NSCoder; }); // inherited from NSCoding class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; setViewControllersAnimated(viewControllers: NSArray, animated: boolean): void; tabBarDidBeginCustomizingItems(tabBar: UITabBar, items: NSArray): void; tabBarDidEndCustomizingItemsChanged(tabBar: UITabBar, items: NSArray, changed: boolean): void; tabBarDidSelectItem(tabBar: UITabBar, item: UITabBarItem): void; tabBarWillBeginCustomizingItems(tabBar: UITabBar, items: NSArray): void; tabBarWillEndCustomizingItemsChanged(tabBar: UITabBar, items: NSArray, changed: boolean): void; } interface UITabBarControllerDelegate extends NSObjectProtocol { tabBarControllerAnimationControllerForTransitionFromViewControllerToViewController?(tabBarController: UITabBarController, fromVC: UIViewController, toVC: UIViewController): UIViewControllerAnimatedTransitioning; tabBarControllerDidEndCustomizingViewControllersChanged?(tabBarController: UITabBarController, viewControllers: NSArray, changed: boolean): void; tabBarControllerDidSelectViewController?(tabBarController: UITabBarController, viewController: UIViewController): void; tabBarControllerInteractionControllerForAnimationController?(tabBarController: UITabBarController, animationController: UIViewControllerAnimatedTransitioning): UIViewControllerInteractiveTransitioning; tabBarControllerPreferredInterfaceOrientationForPresentation?(tabBarController: UITabBarController): UIInterfaceOrientation; tabBarControllerShouldSelectViewController?(tabBarController: UITabBarController, viewController: UIViewController): boolean; tabBarControllerSupportedInterfaceOrientations?(tabBarController: UITabBarController): UIInterfaceOrientationMask; tabBarControllerWillBeginCustomizingViewControllers?(tabBarController: UITabBarController, viewControllers: NSArray): void; tabBarControllerWillEndCustomizingViewControllersChanged?(tabBarController: UITabBarController, viewControllers: NSArray, changed: boolean): void; } declare var UITabBarControllerDelegate: { prototype: UITabBarControllerDelegate; }; interface UITabBarDelegate extends NSObjectProtocol { tabBarDidBeginCustomizingItems?(tabBar: UITabBar, items: NSArray): void; tabBarDidEndCustomizingItemsChanged?(tabBar: UITabBar, items: NSArray, changed: boolean): void; tabBarDidSelectItem?(tabBar: UITabBar, item: UITabBarItem): void; tabBarWillBeginCustomizingItems?(tabBar: UITabBar, items: NSArray): void; tabBarWillEndCustomizingItemsChanged?(tabBar: UITabBar, items: NSArray, changed: boolean): void; } declare var UITabBarDelegate: { prototype: UITabBarDelegate; }; declare class UITabBarItem extends UIBarItem { static alloc(): UITabBarItem; // inherited from NSObject static appearance(): UITabBarItem; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UITabBarItem; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UITabBarItem; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UITabBarItem; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UITabBarItem; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UITabBarItem; // inherited from UIAppearance static new(): UITabBarItem; // inherited from NSObject badgeColor: UIColor; badgeValue: string; selectedImage: UIImage; titlePositionAdjustment: UIOffset; constructor(o: { tabBarSystemItem: UITabBarSystemItem; tag: number; }); constructor(o: { title: string; image: UIImage; selectedImage: UIImage; }); constructor(o: { title: string; image: UIImage; tag: number; }); badgeTextAttributesForState(state: UIControlState): NSDictionary; finishedSelectedImage(): UIImage; finishedUnselectedImage(): UIImage; initWithTabBarSystemItemTag(systemItem: UITabBarSystemItem, tag: number): this; initWithTitleImageSelectedImage(title: string, image: UIImage, selectedImage: UIImage): this; initWithTitleImageTag(title: string, image: UIImage, tag: number): this; setBadgeTextAttributesForState(textAttributes: NSDictionary, state: UIControlState): void; setFinishedSelectedImageWithFinishedUnselectedImage(selectedImage: UIImage, unselectedImage: UIImage): void; } declare const enum UITabBarItemPositioning { Automatic = 0, Fill = 1, Centered = 2 } declare const enum UITabBarSystemItem { More = 0, Favorites = 1, Featured = 2, TopRated = 3, Recents = 4, Contacts = 5, History = 6, Bookmarks = 7, Search = 8, Downloads = 9, MostRecent = 10, MostViewed = 11 } declare class UITableView extends UIScrollView implements NSCoding { static alloc(): UITableView; // inherited from NSObject static appearance(): UITableView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UITableView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UITableView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UITableView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UITableView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UITableView; // inherited from UIAppearance static new(): UITableView; // inherited from NSObject allowsMultipleSelection: boolean; allowsMultipleSelectionDuringEditing: boolean; allowsSelection: boolean; allowsSelectionDuringEditing: boolean; backgroundView: UIView; cellLayoutMarginsFollowReadableWidth: boolean; dataSource: UITableViewDataSource; delegate: UITableViewDelegate; editing: boolean; estimatedRowHeight: number; estimatedSectionFooterHeight: number; estimatedSectionHeaderHeight: number; readonly indexPathForSelectedRow: NSIndexPath; readonly indexPathsForSelectedRows: NSArray; readonly indexPathsForVisibleRows: NSArray; readonly numberOfSections: number; prefetchDataSource: UITableViewDataSourcePrefetching; remembersLastFocusedIndexPath: boolean; rowHeight: number; sectionFooterHeight: number; sectionHeaderHeight: number; sectionIndexBackgroundColor: UIColor; sectionIndexColor: UIColor; sectionIndexMinimumDisplayRowCount: number; sectionIndexTrackingBackgroundColor: UIColor; separatorColor: UIColor; separatorEffect: UIVisualEffect; separatorInset: UIEdgeInsets; separatorStyle: UITableViewCellSeparatorStyle; readonly style: UITableViewStyle; tableFooterView: UIView; tableHeaderView: UIView; readonly visibleCells: NSArray; constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { frame: CGRect; style: UITableViewStyle; }); beginUpdates(): void; cellForRowAtIndexPath(indexPath: NSIndexPath): UITableViewCell; deleteRowsAtIndexPathsWithRowAnimation(indexPaths: NSArray, animation: UITableViewRowAnimation): void; deleteSectionsWithRowAnimation(sections: NSIndexSet, animation: UITableViewRowAnimation): void; dequeueReusableCellWithIdentifier(identifier: string): UITableViewCell; dequeueReusableCellWithIdentifierForIndexPath(identifier: string, indexPath: NSIndexPath): UITableViewCell; dequeueReusableHeaderFooterViewWithIdentifier(identifier: string): UITableViewHeaderFooterView; deselectRowAtIndexPathAnimated(indexPath: NSIndexPath, animated: boolean): void; encodeWithCoder(aCoder: NSCoder): void; endUpdates(): void; footerViewForSection(section: number): UITableViewHeaderFooterView; headerViewForSection(section: number): UITableViewHeaderFooterView; indexPathForCell(cell: UITableViewCell): NSIndexPath; indexPathForRowAtPoint(point: CGPoint): NSIndexPath; indexPathsForRowsInRect(rect: CGRect): NSArray; initWithCoder(aDecoder: NSCoder): this; initWithFrameStyle(frame: CGRect, style: UITableViewStyle): this; insertRowsAtIndexPathsWithRowAnimation(indexPaths: NSArray, animation: UITableViewRowAnimation): void; insertSectionsWithRowAnimation(sections: NSIndexSet, animation: UITableViewRowAnimation): void; moveRowAtIndexPathToIndexPath(indexPath: NSIndexPath, newIndexPath: NSIndexPath): void; moveSectionToSection(section: number, newSection: number): void; numberOfRowsInSection(section: number): number; rectForFooterInSection(section: number): CGRect; rectForHeaderInSection(section: number): CGRect; rectForRowAtIndexPath(indexPath: NSIndexPath): CGRect; rectForSection(section: number): CGRect; registerClassForCellReuseIdentifier(cellClass: typeof NSObject, identifier: string): void; registerClassForHeaderFooterViewReuseIdentifier(aClass: typeof NSObject, identifier: string): void; registerNibForCellReuseIdentifier(nib: UINib, identifier: string): void; registerNibForHeaderFooterViewReuseIdentifier(nib: UINib, identifier: string): void; reloadData(): void; reloadRowsAtIndexPathsWithRowAnimation(indexPaths: NSArray, animation: UITableViewRowAnimation): void; reloadSectionIndexTitles(): void; reloadSectionsWithRowAnimation(sections: NSIndexSet, animation: UITableViewRowAnimation): void; scrollToNearestSelectedRowAtScrollPositionAnimated(scrollPosition: UITableViewScrollPosition, animated: boolean): void; scrollToRowAtIndexPathAtScrollPositionAnimated(indexPath: NSIndexPath, scrollPosition: UITableViewScrollPosition, animated: boolean): void; selectRowAtIndexPathAnimatedScrollPosition(indexPath: NSIndexPath, animated: boolean, scrollPosition: UITableViewScrollPosition): void; setEditingAnimated(editing: boolean, animated: boolean): void; } declare var UITableViewAutomaticDimension: number; declare class UITableViewCell extends UIView implements NSCoding, UIGestureRecognizerDelegate { static alloc(): UITableViewCell; // inherited from NSObject static appearance(): UITableViewCell; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UITableViewCell; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UITableViewCell; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UITableViewCell; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UITableViewCell; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UITableViewCell; // inherited from UIAppearance static new(): UITableViewCell; // inherited from NSObject accessoryAction: string; accessoryType: UITableViewCellAccessoryType; accessoryView: UIView; backgroundView: UIView; readonly contentView: UIView; readonly detailTextLabel: UILabel; editAction: string; editing: boolean; editingAccessoryType: UITableViewCellAccessoryType; editingAccessoryView: UIView; readonly editingStyle: UITableViewCellEditingStyle; focusStyle: UITableViewCellFocusStyle; font: UIFont; hidesAccessoryWhenEditing: boolean; highlighted: boolean; image: UIImage; readonly imageView: UIImageView; indentationLevel: number; indentationWidth: number; lineBreakMode: NSLineBreakMode; multipleSelectionBackgroundView: UIView; readonly reuseIdentifier: string; selected: boolean; selectedBackgroundView: UIView; selectedImage: UIImage; selectedTextColor: UIColor; selectionStyle: UITableViewCellSelectionStyle; separatorInset: UIEdgeInsets; shouldIndentWhileEditing: boolean; readonly showingDeleteConfirmation: boolean; showsReorderControl: boolean; target: any; text: string; textAlignment: NSTextAlignment; textColor: UIColor; readonly textLabel: UILabel; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { frame: CGRect; reuseIdentifier: string; }); constructor(o: { style: UITableViewCellStyle; reuseIdentifier: string; }); class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; didTransitionToState(state: UITableViewCellStateMask): void; encodeWithCoder(aCoder: NSCoder): void; gestureRecognizerShouldBeRequiredToFailByGestureRecognizer(gestureRecognizer: UIGestureRecognizer, otherGestureRecognizer: UIGestureRecognizer): boolean; gestureRecognizerShouldBegin(gestureRecognizer: UIGestureRecognizer): boolean; gestureRecognizerShouldReceivePress(gestureRecognizer: UIGestureRecognizer, press: UIPress): boolean; gestureRecognizerShouldReceiveTouch(gestureRecognizer: UIGestureRecognizer, touch: UITouch): boolean; gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(gestureRecognizer: UIGestureRecognizer, otherGestureRecognizer: UIGestureRecognizer): boolean; gestureRecognizerShouldRequireFailureOfGestureRecognizer(gestureRecognizer: UIGestureRecognizer, otherGestureRecognizer: UIGestureRecognizer): boolean; initWithCoder(aDecoder: NSCoder): this; initWithFrameReuseIdentifier(frame: CGRect, reuseIdentifier: string): this; initWithStyleReuseIdentifier(style: UITableViewCellStyle, reuseIdentifier: string): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; prepareForReuse(): void; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; setEditingAnimated(editing: boolean, animated: boolean): void; setHighlightedAnimated(highlighted: boolean, animated: boolean): void; setSelectedAnimated(selected: boolean, animated: boolean): void; willTransitionToState(state: UITableViewCellStateMask): void; } declare const enum UITableViewCellAccessoryType { None = 0, DisclosureIndicator = 1, DetailDisclosureButton = 2, Checkmark = 3, DetailButton = 4 } declare const enum UITableViewCellEditingStyle { None = 0, Delete = 1, Insert = 2 } declare const enum UITableViewCellFocusStyle { Default = 0, Custom = 1 } declare const enum UITableViewCellSelectionStyle { None = 0, Blue = 1, Gray = 2, Default = 3 } declare const enum UITableViewCellSeparatorStyle { None = 0, SingleLine = 1, SingleLineEtched = 2 } declare const enum UITableViewCellStateMask { DefaultMask = 0, ShowingEditControlMask = 1, ShowingDeleteConfirmationMask = 2 } declare const enum UITableViewCellStyle { Default = 0, Value1 = 1, Value2 = 2, Subtitle = 3 } declare class UITableViewController extends UIViewController implements UITableViewDataSource, UITableViewDelegate { static alloc(): UITableViewController; // inherited from NSObject static new(): UITableViewController; // inherited from NSObject clearsSelectionOnViewWillAppear: boolean; refreshControl: UIRefreshControl; tableView: UITableView; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { style: UITableViewStyle; }); class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; indexPathForPreferredFocusedViewInTableView(tableView: UITableView): NSIndexPath; initWithStyle(style: UITableViewStyle): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; numberOfSectionsInTableView(tableView: UITableView): number; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; scrollViewDidEndDecelerating(scrollView: UIScrollView): void; scrollViewDidEndDraggingWillDecelerate(scrollView: UIScrollView, decelerate: boolean): void; scrollViewDidEndScrollingAnimation(scrollView: UIScrollView): void; scrollViewDidEndZoomingWithViewAtScale(scrollView: UIScrollView, view: UIView, scale: number): void; scrollViewDidScroll(scrollView: UIScrollView): void; scrollViewDidScrollToTop(scrollView: UIScrollView): void; scrollViewDidZoom(scrollView: UIScrollView): void; scrollViewShouldScrollToTop(scrollView: UIScrollView): boolean; scrollViewWillBeginDecelerating(scrollView: UIScrollView): void; scrollViewWillBeginDragging(scrollView: UIScrollView): void; scrollViewWillBeginZoomingWithView(scrollView: UIScrollView, view: UIView): void; scrollViewWillEndDraggingWithVelocityTargetContentOffset(scrollView: UIScrollView, velocity: CGPoint, targetContentOffset: interop.Pointer | interop.Reference): void; sectionIndexTitlesForTableView(tableView: UITableView): NSArray; self(): this; tableViewAccessoryButtonTappedForRowWithIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; tableViewAccessoryTypeForRowWithIndexPath(tableView: UITableView, indexPath: NSIndexPath): UITableViewCellAccessoryType; tableViewCanEditRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewCanFocusRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewCanMoveRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewCanPerformActionForRowAtIndexPathWithSender(tableView: UITableView, action: string, indexPath: NSIndexPath, sender: any): boolean; tableViewCellForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): UITableViewCell; tableViewCommitEditingStyleForRowAtIndexPath(tableView: UITableView, editingStyle: UITableViewCellEditingStyle, indexPath: NSIndexPath): void; tableViewDidDeselectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidEndDisplayingCellForRowAtIndexPath(tableView: UITableView, cell: UITableViewCell, indexPath: NSIndexPath): void; tableViewDidEndDisplayingFooterViewForSection(tableView: UITableView, view: UIView, section: number): void; tableViewDidEndDisplayingHeaderViewForSection(tableView: UITableView, view: UIView, section: number): void; tableViewDidEndEditingRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidHighlightRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidSelectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidUnhighlightRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidUpdateFocusInContextWithAnimationCoordinator(tableView: UITableView, context: UITableViewFocusUpdateContext, coordinator: UIFocusAnimationCoordinator): void; tableViewEditActionsForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSArray; tableViewEditingStyleForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): UITableViewCellEditingStyle; tableViewEstimatedHeightForFooterInSection(tableView: UITableView, section: number): number; tableViewEstimatedHeightForHeaderInSection(tableView: UITableView, section: number): number; tableViewEstimatedHeightForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): number; tableViewHeightForFooterInSection(tableView: UITableView, section: number): number; tableViewHeightForHeaderInSection(tableView: UITableView, section: number): number; tableViewHeightForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): number; tableViewIndentationLevelForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): number; tableViewMoveRowAtIndexPathToIndexPath(tableView: UITableView, sourceIndexPath: NSIndexPath, destinationIndexPath: NSIndexPath): void; tableViewNumberOfRowsInSection(tableView: UITableView, section: number): number; tableViewPerformActionForRowAtIndexPathWithSender(tableView: UITableView, action: string, indexPath: NSIndexPath, sender: any): void; tableViewSectionForSectionIndexTitleAtIndex(tableView: UITableView, title: string, index: number): number; tableViewShouldHighlightRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewShouldIndentWhileEditingRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewShouldShowMenuForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewShouldUpdateFocusInContext(tableView: UITableView, context: UITableViewFocusUpdateContext): boolean; tableViewTargetIndexPathForMoveFromRowAtIndexPathToProposedIndexPath(tableView: UITableView, sourceIndexPath: NSIndexPath, proposedDestinationIndexPath: NSIndexPath): NSIndexPath; tableViewTitleForDeleteConfirmationButtonForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): string; tableViewTitleForFooterInSection(tableView: UITableView, section: number): string; tableViewTitleForHeaderInSection(tableView: UITableView, section: number): string; tableViewViewForFooterInSection(tableView: UITableView, section: number): UIView; tableViewViewForHeaderInSection(tableView: UITableView, section: number): UIView; tableViewWillBeginEditingRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; tableViewWillDeselectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath; tableViewWillDisplayCellForRowAtIndexPath(tableView: UITableView, cell: UITableViewCell, indexPath: NSIndexPath): void; tableViewWillDisplayFooterViewForSection(tableView: UITableView, view: UIView, section: number): void; tableViewWillDisplayHeaderViewForSection(tableView: UITableView, view: UIView, section: number): void; tableViewWillSelectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath; viewForZoomingInScrollView(scrollView: UIScrollView): UIView; } interface UITableViewDataSource extends NSObjectProtocol { numberOfSectionsInTableView?(tableView: UITableView): number; sectionIndexTitlesForTableView?(tableView: UITableView): NSArray; tableViewCanEditRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewCanMoveRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewCellForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): UITableViewCell; tableViewCommitEditingStyleForRowAtIndexPath?(tableView: UITableView, editingStyle: UITableViewCellEditingStyle, indexPath: NSIndexPath): void; tableViewMoveRowAtIndexPathToIndexPath?(tableView: UITableView, sourceIndexPath: NSIndexPath, destinationIndexPath: NSIndexPath): void; tableViewNumberOfRowsInSection(tableView: UITableView, section: number): number; tableViewSectionForSectionIndexTitleAtIndex?(tableView: UITableView, title: string, index: number): number; tableViewTitleForFooterInSection?(tableView: UITableView, section: number): string; tableViewTitleForHeaderInSection?(tableView: UITableView, section: number): string; } declare var UITableViewDataSource: { prototype: UITableViewDataSource; }; interface UITableViewDataSourcePrefetching extends NSObjectProtocol { tableViewCancelPrefetchingForRowsAtIndexPaths?(tableView: UITableView, indexPaths: NSArray): void; tableViewPrefetchRowsAtIndexPaths(tableView: UITableView, indexPaths: NSArray): void; } declare var UITableViewDataSourcePrefetching: { prototype: UITableViewDataSourcePrefetching; }; interface UITableViewDelegate extends NSObjectProtocol, UIScrollViewDelegate { indexPathForPreferredFocusedViewInTableView?(tableView: UITableView): NSIndexPath; tableViewAccessoryButtonTappedForRowWithIndexPath?(tableView: UITableView, indexPath: NSIndexPath): void; tableViewAccessoryTypeForRowWithIndexPath?(tableView: UITableView, indexPath: NSIndexPath): UITableViewCellAccessoryType; tableViewCanFocusRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewCanPerformActionForRowAtIndexPathWithSender?(tableView: UITableView, action: string, indexPath: NSIndexPath, sender: any): boolean; tableViewDidDeselectRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidEndDisplayingCellForRowAtIndexPath?(tableView: UITableView, cell: UITableViewCell, indexPath: NSIndexPath): void; tableViewDidEndDisplayingFooterViewForSection?(tableView: UITableView, view: UIView, section: number): void; tableViewDidEndDisplayingHeaderViewForSection?(tableView: UITableView, view: UIView, section: number): void; tableViewDidEndEditingRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidHighlightRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidSelectRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidUnhighlightRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): void; tableViewDidUpdateFocusInContextWithAnimationCoordinator?(tableView: UITableView, context: UITableViewFocusUpdateContext, coordinator: UIFocusAnimationCoordinator): void; tableViewEditActionsForRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): NSArray; tableViewEditingStyleForRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): UITableViewCellEditingStyle; tableViewEstimatedHeightForFooterInSection?(tableView: UITableView, section: number): number; tableViewEstimatedHeightForHeaderInSection?(tableView: UITableView, section: number): number; tableViewEstimatedHeightForRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): number; tableViewHeightForFooterInSection?(tableView: UITableView, section: number): number; tableViewHeightForHeaderInSection?(tableView: UITableView, section: number): number; tableViewHeightForRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): number; tableViewIndentationLevelForRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): number; tableViewPerformActionForRowAtIndexPathWithSender?(tableView: UITableView, action: string, indexPath: NSIndexPath, sender: any): void; tableViewShouldHighlightRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewShouldIndentWhileEditingRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewShouldShowMenuForRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): boolean; tableViewShouldUpdateFocusInContext?(tableView: UITableView, context: UITableViewFocusUpdateContext): boolean; tableViewTargetIndexPathForMoveFromRowAtIndexPathToProposedIndexPath?(tableView: UITableView, sourceIndexPath: NSIndexPath, proposedDestinationIndexPath: NSIndexPath): NSIndexPath; tableViewTitleForDeleteConfirmationButtonForRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): string; tableViewViewForFooterInSection?(tableView: UITableView, section: number): UIView; tableViewViewForHeaderInSection?(tableView: UITableView, section: number): UIView; tableViewWillBeginEditingRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): void; tableViewWillDeselectRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath; tableViewWillDisplayCellForRowAtIndexPath?(tableView: UITableView, cell: UITableViewCell, indexPath: NSIndexPath): void; tableViewWillDisplayFooterViewForSection?(tableView: UITableView, view: UIView, section: number): void; tableViewWillDisplayHeaderViewForSection?(tableView: UITableView, view: UIView, section: number): void; tableViewWillSelectRowAtIndexPath?(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath; } declare var UITableViewDelegate: { prototype: UITableViewDelegate; }; declare class UITableViewFocusUpdateContext extends UIFocusUpdateContext { static alloc(): UITableViewFocusUpdateContext; // inherited from NSObject static new(): UITableViewFocusUpdateContext; // inherited from NSObject readonly nextFocusedIndexPath: NSIndexPath; readonly previouslyFocusedIndexPath: NSIndexPath; } declare class UITableViewHeaderFooterView extends UIView { static alloc(): UITableViewHeaderFooterView; // inherited from NSObject static appearance(): UITableViewHeaderFooterView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UITableViewHeaderFooterView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UITableViewHeaderFooterView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UITableViewHeaderFooterView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UITableViewHeaderFooterView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UITableViewHeaderFooterView; // inherited from UIAppearance static new(): UITableViewHeaderFooterView; // inherited from NSObject backgroundView: UIView; readonly contentView: UIView; readonly detailTextLabel: UILabel; readonly reuseIdentifier: string; readonly textLabel: UILabel; constructor(o: { reuseIdentifier: string; }); initWithReuseIdentifier(reuseIdentifier: string): this; prepareForReuse(): void; } declare var UITableViewIndexSearch: string; declare class UITableViewRowAction extends NSObject implements NSCopying { static alloc(): UITableViewRowAction; // inherited from NSObject static new(): UITableViewRowAction; // inherited from NSObject static rowActionWithStyleTitleHandler(style: UITableViewRowActionStyle, title: string, handler: (p1: UITableViewRowAction, p2: NSIndexPath) => void): UITableViewRowAction; backgroundColor: UIColor; backgroundEffect: UIVisualEffect; readonly style: UITableViewRowActionStyle; title: string; copyWithZone(zone: interop.Pointer | interop.Reference): any; } declare const enum UITableViewRowActionStyle { Default = 0, Destructive = 0, Normal = 1 } declare const enum UITableViewRowAnimation { Fade = 0, Right = 1, Left = 2, Top = 3, Bottom = 4, None = 5, Middle = 6, Automatic = 100 } declare const enum UITableViewScrollPosition { None = 0, Top = 1, Middle = 2, Bottom = 3 } declare var UITableViewSelectionDidChangeNotification: string; declare const enum UITableViewStyle { Plain = 0, Grouped = 1 } declare class UITapGestureRecognizer extends UIGestureRecognizer { static alloc(): UITapGestureRecognizer; // inherited from NSObject static new(): UITapGestureRecognizer; // inherited from NSObject numberOfTapsRequired: number; numberOfTouchesRequired: number; } declare const enum UITextAlignment { Left = 0, Center = 1, Right = 2 } declare var UITextAttributeFont: string; declare var UITextAttributeTextColor: string; declare var UITextAttributeTextShadowColor: string; declare var UITextAttributeTextShadowOffset: string; declare const enum UITextAutocapitalizationType { None = 0, Words = 1, Sentences = 2, AllCharacters = 3 } declare const enum UITextAutocorrectionType { Default = 0, No = 1, Yes = 2 } declare const enum UITextBorderStyle { None = 0, Line = 1, Bezel = 2, RoundedRect = 3 } declare class UITextChecker extends NSObject { static alloc(): UITextChecker; // inherited from NSObject static hasLearnedWord(word: string): boolean; static learnWord(word: string): void; static new(): UITextChecker; // inherited from NSObject static unlearnWord(word: string): void; ignoredWords: NSArray; static readonly availableLanguages: NSArray; completionsForPartialWordRangeInStringLanguage(range: NSRange, string: string, language: string): NSArray; guessesForWordRangeInStringLanguage(range: NSRange, string: string, language: string): NSArray; ignoreWord(wordToIgnore: string): void; rangeOfMisspelledWordInStringRangeStartingAtWrapLanguage(stringToCheck: string, range: NSRange, startingOffset: number, wrapFlag: boolean, language: string): NSRange; } declare var UITextContentTypeAddressCity: string; declare var UITextContentTypeAddressCityAndState: string; declare var UITextContentTypeAddressState: string; declare var UITextContentTypeCountryName: string; declare var UITextContentTypeCreditCardNumber: string; declare var UITextContentTypeEmailAddress: string; declare var UITextContentTypeFamilyName: string; declare var UITextContentTypeFullStreetAddress: string; declare var UITextContentTypeGivenName: string; declare var UITextContentTypeJobTitle: string; declare var UITextContentTypeLocation: string; declare var UITextContentTypeMiddleName: string; declare var UITextContentTypeName: string; declare var UITextContentTypeNamePrefix: string; declare var UITextContentTypeNameSuffix: string; declare var UITextContentTypeNickname: string; declare var UITextContentTypeOrganizationName: string; declare var UITextContentTypePostalCode: string; declare var UITextContentTypeStreetAddressLine1: string; declare var UITextContentTypeStreetAddressLine2: string; declare var UITextContentTypeSublocality: string; declare var UITextContentTypeTelephoneNumber: string; declare var UITextContentTypeURL: string; interface UITextDocumentProxy extends UIKeyInput { documentContextAfterInput: string; documentContextBeforeInput: string; documentInputMode: UITextInputMode; adjustTextPositionByCharacterOffset(offset: number): void; } declare var UITextDocumentProxy: { prototype: UITextDocumentProxy; }; declare class UITextField extends UIControl implements NSCoding, UIContentSizeCategoryAdjusting, UITextInput { static alloc(): UITextField; // inherited from NSObject static appearance(): UITextField; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UITextField; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UITextField; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UITextField; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UITextField; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UITextField; // inherited from UIAppearance static new(): UITextField; // inherited from NSObject adjustsFontSizeToFitWidth: boolean; allowsEditingTextAttributes: boolean; attributedPlaceholder: NSAttributedString; attributedText: NSAttributedString; background: UIImage; borderStyle: UITextBorderStyle; clearButtonMode: UITextFieldViewMode; clearsOnBeginEditing: boolean; clearsOnInsertion: boolean; defaultTextAttributes: NSDictionary; delegate: UITextFieldDelegate; disabledBackground: UIImage; readonly editing: boolean; font: UIFont; inputAccessoryView: UIView; inputView: UIView; leftView: UIView; leftViewMode: UITextFieldViewMode; minimumFontSize: number; placeholder: string; rightView: UIView; rightViewMode: UITextFieldViewMode; text: string; textAlignment: NSTextAlignment; textColor: UIColor; typingAttributes: NSDictionary; adjustsFontForContentSizeCategory: boolean; // inherited from UIContentSizeCategoryAdjusting autocapitalizationType: UITextAutocapitalizationType; // inherited from UITextInputTraits autocorrectionType: UITextAutocorrectionType; // inherited from UITextInputTraits readonly beginningOfDocument: UITextPosition; // inherited from UITextInput readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol enablesReturnKeyAutomatically: boolean; // inherited from UITextInputTraits readonly endOfDocument: UITextPosition; // inherited from UITextInput readonly hasText: boolean; // inherited from UIKeyInput readonly hash: number; // inherited from NSObjectProtocol inputDelegate: UITextInputDelegate; // inherited from UITextInput readonly insertDictationResultPlaceholder: any; // inherited from UITextInput readonly isProxy: boolean; // inherited from NSObjectProtocol keyboardAppearance: UIKeyboardAppearance; // inherited from UITextInputTraits keyboardType: UIKeyboardType; // inherited from UITextInputTraits readonly markedTextRange: UITextRange; // inherited from UITextInput markedTextStyle: NSDictionary; // inherited from UITextInput returnKeyType: UIReturnKeyType; // inherited from UITextInputTraits secureTextEntry: boolean; // inherited from UITextInputTraits selectedTextRange: UITextRange; // inherited from UITextInput selectionAffinity: UITextStorageDirection; // inherited from UITextInput spellCheckingType: UITextSpellCheckingType; // inherited from UITextInputTraits readonly superclass: typeof NSObject; // inherited from NSObjectProtocol textContentType: string; // inherited from UITextInputTraits readonly textInputView: UIView; // inherited from UITextInput readonly tokenizer: UITextInputTokenizer; // inherited from UITextInput readonly // inherited from NSObjectProtocol constructor(o: { coder: NSCoder; }); // inherited from NSCoding baseWritingDirectionForPositionInDirection(position: UITextPosition, direction: UITextStorageDirection): UITextWritingDirection; beginFloatingCursorAtPoint(point: CGPoint): void; borderRectForBounds(bounds: CGRect): CGRect; caretRectForPosition(position: UITextPosition): CGRect; characterOffsetOfPositionWithinRange(position: UITextPosition, range: UITextRange): number; characterRangeAtPoint(point: CGPoint): UITextRange; characterRangeByExtendingPositionInDirection(position: UITextPosition, direction: UITextLayoutDirection): UITextRange; class(): typeof NSObject; clearButtonRectForBounds(bounds: CGRect): CGRect; closestPositionToPoint(point: CGPoint): UITextPosition; closestPositionToPointWithinRange(point: CGPoint, range: UITextRange): UITextPosition; comparePositionToPosition(position: UITextPosition, other: UITextPosition): NSComparisonResult; conformsToProtocol(aProtocol: any /* Protocol */): boolean; deleteBackward(): void; dictationRecognitionFailed(): void; dictationRecordingDidEnd(): void; drawPlaceholderInRect(rect: CGRect): void; drawTextInRect(rect: CGRect): void; editingRectForBounds(bounds: CGRect): CGRect; encodeWithCoder(aCoder: NSCoder): void; endFloatingCursor(): void; firstRectForRange(range: UITextRange): CGRect; frameForDictationResultPlaceholder(placeholder: any): CGRect; initWithCoder(aDecoder: NSCoder): this; insertDictationResult(dictationResult: NSArray): void; insertText(text: string): void; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; leftViewRectForBounds(bounds: CGRect): CGRect; offsetFromPositionToPosition(from: UITextPosition, toPosition: UITextPosition): number; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; placeholderRectForBounds(bounds: CGRect): CGRect; positionFromPositionInDirectionOffset(position: UITextPosition, direction: UITextLayoutDirection, offset: number): UITextPosition; positionFromPositionOffset(position: UITextPosition, offset: number): UITextPosition; positionWithinRangeAtCharacterOffset(range: UITextRange, offset: number): UITextPosition; positionWithinRangeFarthestInDirection(range: UITextRange, direction: UITextLayoutDirection): UITextPosition; removeDictationResultPlaceholderWillInsertResult(placeholder: any, willInsertResult: boolean): void; replaceRangeWithText(range: UITextRange, text: string): void; respondsToSelector(aSelector: string): boolean; retainCount(): number; rightViewRectForBounds(bounds: CGRect): CGRect; selectionRectsForRange(range: UITextRange): NSArray; self(): this; setBaseWritingDirectionForRange(writingDirection: UITextWritingDirection, range: UITextRange): void; setMarkedTextSelectedRange(markedText: string, selectedRange: NSRange): void; shouldChangeTextInRangeReplacementText(range: UITextRange, text: string): boolean; textInRange(range: UITextRange): string; textRangeFromPositionToPosition(fromPosition: UITextPosition, toPosition: UITextPosition): UITextRange; textRectForBounds(bounds: CGRect): CGRect; textStylingAtPositionInDirection(position: UITextPosition, direction: UITextStorageDirection): NSDictionary; unmarkText(): void; updateFloatingCursorAtPoint(point: CGPoint): void; } interface UITextFieldDelegate extends NSObjectProtocol { textFieldDidBeginEditing?(textField: UITextField): void; textFieldDidEndEditing?(textField: UITextField): void; textFieldDidEndEditingReason?(textField: UITextField, reason: UITextFieldDidEndEditingReason): void; textFieldShouldBeginEditing?(textField: UITextField): boolean; textFieldShouldChangeCharactersInRangeReplacementString?(textField: UITextField, range: NSRange, string: string): boolean; textFieldShouldClear?(textField: UITextField): boolean; textFieldShouldEndEditing?(textField: UITextField): boolean; textFieldShouldReturn?(textField: UITextField): boolean; } declare var UITextFieldDelegate: { prototype: UITextFieldDelegate; }; declare const enum UITextFieldDidEndEditingReason { Committed = 0, Cancelled = 1 } declare var UITextFieldDidEndEditingReasonKey: string; declare var UITextFieldTextDidBeginEditingNotification: string; declare var UITextFieldTextDidChangeNotification: string; declare var UITextFieldTextDidEndEditingNotification: string; declare const enum UITextFieldViewMode { Never = 0, WhileEditing = 1, UnlessEditing = 2, Always = 3 } declare const enum UITextGranularity { Character = 0, Word = 1, Sentence = 2, Paragraph = 3, Line = 4, Document = 5 } interface UITextInput extends UIKeyInput { beginningOfDocument: UITextPosition; endOfDocument: UITextPosition; inputDelegate: UITextInputDelegate; insertDictationResultPlaceholder?: any; markedTextRange: UITextRange; markedTextStyle: NSDictionary; selectedTextRange: UITextRange; selectionAffinity?: UITextStorageDirection; textInputView?: UIView; tokenizer: UITextInputTokenizer; baseWritingDirectionForPositionInDirection(position: UITextPosition, direction: UITextStorageDirection): UITextWritingDirection; beginFloatingCursorAtPoint?(point: CGPoint): void; caretRectForPosition(position: UITextPosition): CGRect; characterOffsetOfPositionWithinRange?(position: UITextPosition, range: UITextRange): number; characterRangeAtPoint(point: CGPoint): UITextRange; characterRangeByExtendingPositionInDirection(position: UITextPosition, direction: UITextLayoutDirection): UITextRange; closestPositionToPoint(point: CGPoint): UITextPosition; closestPositionToPointWithinRange(point: CGPoint, range: UITextRange): UITextPosition; comparePositionToPosition(position: UITextPosition, other: UITextPosition): NSComparisonResult; dictationRecognitionFailed?(): void; dictationRecordingDidEnd?(): void; endFloatingCursor?(): void; firstRectForRange(range: UITextRange): CGRect; frameForDictationResultPlaceholder?(placeholder: any): CGRect; insertDictationResult?(dictationResult: NSArray): void; offsetFromPositionToPosition(from: UITextPosition, toPosition: UITextPosition): number; positionFromPositionInDirectionOffset(position: UITextPosition, direction: UITextLayoutDirection, offset: number): UITextPosition; positionFromPositionOffset(position: UITextPosition, offset: number): UITextPosition; positionWithinRangeAtCharacterOffset?(range: UITextRange, offset: number): UITextPosition; positionWithinRangeFarthestInDirection(range: UITextRange, direction: UITextLayoutDirection): UITextPosition; removeDictationResultPlaceholderWillInsertResult?(placeholder: any, willInsertResult: boolean): void; replaceRangeWithText(range: UITextRange, text: string): void; selectionRectsForRange(range: UITextRange): NSArray; setBaseWritingDirectionForRange(writingDirection: UITextWritingDirection, range: UITextRange): void; setMarkedTextSelectedRange(markedText: string, selectedRange: NSRange): void; shouldChangeTextInRangeReplacementText?(range: UITextRange, text: string): boolean; textInRange(range: UITextRange): string; textRangeFromPositionToPosition(fromPosition: UITextPosition, toPosition: UITextPosition): UITextRange; textStylingAtPositionInDirection?(position: UITextPosition, direction: UITextStorageDirection): NSDictionary; unmarkText(): void; updateFloatingCursorAtPoint?(point: CGPoint): void; } declare var UITextInput: { prototype: UITextInput; }; declare class UITextInputAssistantItem extends NSObject { static alloc(): UITextInputAssistantItem; // inherited from NSObject static new(): UITextInputAssistantItem; // inherited from NSObject allowsHidingShortcuts: boolean; leadingBarButtonGroups: NSArray; trailingBarButtonGroups: NSArray; } declare var UITextInputCurrentInputModeDidChangeNotification: string; interface UITextInputDelegate extends NSObjectProtocol { selectionDidChange(textInput: UITextInput): void; selectionWillChange(textInput: UITextInput): void; textDidChange(textInput: UITextInput): void; textWillChange(textInput: UITextInput): void; } declare var UITextInputDelegate: { prototype: UITextInputDelegate; }; declare class UITextInputMode extends NSObject implements NSSecureCoding { static alloc(): UITextInputMode; // inherited from NSObject static currentInputMode(): UITextInputMode; static new(): UITextInputMode; // inherited from NSObject readonly primaryLanguage: string; static readonly activeInputModes: NSArray; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; } declare class UITextInputStringTokenizer extends NSObject implements UITextInputTokenizer { static alloc(): UITextInputStringTokenizer; // inherited from NSObject static new(): UITextInputStringTokenizer; // inherited from NSObject readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { textInput: UIResponder; }); class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; initWithTextInput(textInput: UIResponder): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; isPositionAtBoundaryInDirection(position: UITextPosition, granularity: UITextGranularity, direction: number): boolean; isPositionWithinTextUnitInDirection(position: UITextPosition, granularity: UITextGranularity, direction: number): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; positionFromPositionToBoundaryInDirection(position: UITextPosition, granularity: UITextGranularity, direction: number): UITextPosition; rangeEnclosingPositionWithGranularityInDirection(position: UITextPosition, granularity: UITextGranularity, direction: number): UITextRange; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare var UITextInputTextBackgroundColorKey: string; declare var UITextInputTextColorKey: string; declare var UITextInputTextFontKey: string; interface UITextInputTokenizer extends NSObjectProtocol { isPositionAtBoundaryInDirection(position: UITextPosition, granularity: UITextGranularity, direction: number): boolean; isPositionWithinTextUnitInDirection(position: UITextPosition, granularity: UITextGranularity, direction: number): boolean; positionFromPositionToBoundaryInDirection(position: UITextPosition, granularity: UITextGranularity, direction: number): UITextPosition; rangeEnclosingPositionWithGranularityInDirection(position: UITextPosition, granularity: UITextGranularity, direction: number): UITextRange; } declare var UITextInputTokenizer: { prototype: UITextInputTokenizer; }; interface UITextInputTraits extends NSObjectProtocol { autocapitalizationType?: UITextAutocapitalizationType; autocorrectionType?: UITextAutocorrectionType; enablesReturnKeyAutomatically?: boolean; keyboardAppearance?: UIKeyboardAppearance; keyboardType?: UIKeyboardType; returnKeyType?: UIReturnKeyType; secureTextEntry?: boolean; spellCheckingType?: UITextSpellCheckingType; textContentType?: string; } declare var UITextInputTraits: { prototype: UITextInputTraits; }; declare const enum UITextItemInteraction { InvokeDefaultAction = 0, PresentActions = 1, Preview = 2 } declare const enum UITextLayoutDirection { Right = 2, Left = 3, Up = 4, Down = 5 } declare class UITextPosition extends NSObject { static alloc(): UITextPosition; // inherited from NSObject static new(): UITextPosition; // inherited from NSObject } declare class UITextRange extends NSObject { static alloc(): UITextRange; // inherited from NSObject static new(): UITextRange; // inherited from NSObject readonly empty: boolean; readonly end: UITextPosition; readonly start: UITextPosition; } declare class UITextSelectionRect extends NSObject { static alloc(): UITextSelectionRect; // inherited from NSObject static new(): UITextSelectionRect; // inherited from NSObject readonly containsEnd: boolean; readonly containsStart: boolean; readonly isVertical: boolean; readonly rect: CGRect; readonly writingDirection: UITextWritingDirection; } declare const enum UITextSpellCheckingType { Default = 0, No = 1, Yes = 2 } declare const enum UITextStorageDirection { Forward = 0, Backward = 1 } declare class UITextView extends UIScrollView implements UIContentSizeCategoryAdjusting, UITextInput { static alloc(): UITextView; // inherited from NSObject static appearance(): UITextView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UITextView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UITextView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UITextView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UITextView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UITextView; // inherited from UIAppearance static new(): UITextView; // inherited from NSObject allowsEditingTextAttributes: boolean; attributedText: NSAttributedString; clearsOnInsertion: boolean; dataDetectorTypes: UIDataDetectorTypes; delegate: UITextViewDelegate; editable: boolean; font: UIFont; inputAccessoryView: UIView; inputView: UIView; readonly layoutManager: NSLayoutManager; linkTextAttributes: NSDictionary; selectable: boolean; selectedRange: NSRange; text: string; textAlignment: NSTextAlignment; textColor: UIColor; readonly textContainer: NSTextContainer; textContainerInset: UIEdgeInsets; readonly textStorage: NSTextStorage; typingAttributes: NSDictionary; adjustsFontForContentSizeCategory: boolean; // inherited from UIContentSizeCategoryAdjusting autocapitalizationType: UITextAutocapitalizationType; // inherited from UITextInputTraits autocorrectionType: UITextAutocorrectionType; // inherited from UITextInputTraits readonly beginningOfDocument: UITextPosition; // inherited from UITextInput readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol enablesReturnKeyAutomatically: boolean; // inherited from UITextInputTraits readonly endOfDocument: UITextPosition; // inherited from UITextInput readonly hasText: boolean; // inherited from UIKeyInput readonly hash: number; // inherited from NSObjectProtocol inputDelegate: UITextInputDelegate; // inherited from UITextInput readonly insertDictationResultPlaceholder: any; // inherited from UITextInput readonly isProxy: boolean; // inherited from NSObjectProtocol keyboardAppearance: UIKeyboardAppearance; // inherited from UITextInputTraits keyboardType: UIKeyboardType; // inherited from UITextInputTraits readonly markedTextRange: UITextRange; // inherited from UITextInput markedTextStyle: NSDictionary; // inherited from UITextInput returnKeyType: UIReturnKeyType; // inherited from UITextInputTraits secureTextEntry: boolean; // inherited from UITextInputTraits selectedTextRange: UITextRange; // inherited from UITextInput selectionAffinity: UITextStorageDirection; // inherited from UITextInput spellCheckingType: UITextSpellCheckingType; // inherited from UITextInputTraits readonly superclass: typeof NSObject; // inherited from NSObjectProtocol textContentType: string; // inherited from UITextInputTraits readonly textInputView: UIView; // inherited from UITextInput readonly tokenizer: UITextInputTokenizer; // inherited from UITextInput readonly // inherited from NSObjectProtocol constructor(o: { frame: CGRect; textContainer: NSTextContainer; }); baseWritingDirectionForPositionInDirection(position: UITextPosition, direction: UITextStorageDirection): UITextWritingDirection; beginFloatingCursorAtPoint(point: CGPoint): void; caretRectForPosition(position: UITextPosition): CGRect; characterOffsetOfPositionWithinRange(position: UITextPosition, range: UITextRange): number; characterRangeAtPoint(point: CGPoint): UITextRange; characterRangeByExtendingPositionInDirection(position: UITextPosition, direction: UITextLayoutDirection): UITextRange; class(): typeof NSObject; closestPositionToPoint(point: CGPoint): UITextPosition; closestPositionToPointWithinRange(point: CGPoint, range: UITextRange): UITextPosition; comparePositionToPosition(position: UITextPosition, other: UITextPosition): NSComparisonResult; conformsToProtocol(aProtocol: any /* Protocol */): boolean; deleteBackward(): void; dictationRecognitionFailed(): void; dictationRecordingDidEnd(): void; endFloatingCursor(): void; firstRectForRange(range: UITextRange): CGRect; frameForDictationResultPlaceholder(placeholder: any): CGRect; initWithFrameTextContainer(frame: CGRect, textContainer: NSTextContainer): this; insertDictationResult(dictationResult: NSArray): void; insertText(text: string): void; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; offsetFromPositionToPosition(from: UITextPosition, toPosition: UITextPosition): number; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; positionFromPositionInDirectionOffset(position: UITextPosition, direction: UITextLayoutDirection, offset: number): UITextPosition; positionFromPositionOffset(position: UITextPosition, offset: number): UITextPosition; positionWithinRangeAtCharacterOffset(range: UITextRange, offset: number): UITextPosition; positionWithinRangeFarthestInDirection(range: UITextRange, direction: UITextLayoutDirection): UITextPosition; removeDictationResultPlaceholderWillInsertResult(placeholder: any, willInsertResult: boolean): void; replaceRangeWithText(range: UITextRange, text: string): void; respondsToSelector(aSelector: string): boolean; retainCount(): number; scrollRangeToVisible(range: NSRange): void; selectionRectsForRange(range: UITextRange): NSArray; self(): this; setBaseWritingDirectionForRange(writingDirection: UITextWritingDirection, range: UITextRange): void; setMarkedTextSelectedRange(markedText: string, selectedRange: NSRange): void; shouldChangeTextInRangeReplacementText(range: UITextRange, text: string): boolean; textInRange(range: UITextRange): string; textRangeFromPositionToPosition(fromPosition: UITextPosition, toPosition: UITextPosition): UITextRange; textStylingAtPositionInDirection(position: UITextPosition, direction: UITextStorageDirection): NSDictionary; unmarkText(): void; updateFloatingCursorAtPoint(point: CGPoint): void; } interface UITextViewDelegate extends NSObjectProtocol, UIScrollViewDelegate { textViewDidBeginEditing?(textView: UITextView): void; textViewDidChange?(textView: UITextView): void; textViewDidChangeSelection?(textView: UITextView): void; textViewDidEndEditing?(textView: UITextView): void; textViewShouldBeginEditing?(textView: UITextView): boolean; textViewShouldChangeTextInRangeReplacementText?(textView: UITextView, range: NSRange, text: string): boolean; textViewShouldEndEditing?(textView: UITextView): boolean; textViewShouldInteractWithTextAttachmentInRange?(textView: UITextView, textAttachment: NSTextAttachment, characterRange: NSRange): boolean; textViewShouldInteractWithTextAttachmentInRangeInteraction?(textView: UITextView, textAttachment: NSTextAttachment, characterRange: NSRange, interaction: UITextItemInteraction): boolean; textViewShouldInteractWithURLInRange?(textView: UITextView, URL: NSURL, characterRange: NSRange): boolean; textViewShouldInteractWithURLInRangeInteraction?(textView: UITextView, URL: NSURL, characterRange: NSRange, interaction: UITextItemInteraction): boolean; } declare var UITextViewDelegate: { prototype: UITextViewDelegate; }; declare var UITextViewTextDidBeginEditingNotification: string; declare var UITextViewTextDidChangeNotification: string; declare var UITextViewTextDidEndEditingNotification: string; declare const enum UITextWritingDirection { Natural = -1, LeftToRight = 0, RightToLeft = 1 } interface UITimingCurveProvider extends NSCoding, NSCopying { cubicTimingParameters: UICubicTimingParameters; springTimingParameters: UISpringTimingParameters; timingCurveType: UITimingCurveType; } declare var UITimingCurveProvider: { prototype: UITimingCurveProvider; }; declare const enum UITimingCurveType { Builtin = 0, Cubic = 1, Spring = 2, Composed = 3 } declare class UIToolbar extends UIView implements UIBarPositioning { static alloc(): UIToolbar; // inherited from NSObject static appearance(): UIToolbar; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIToolbar; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIToolbar; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIToolbar; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIToolbar; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIToolbar; // inherited from UIAppearance static new(): UIToolbar; // inherited from NSObject barStyle: UIBarStyle; barTintColor: UIColor; delegate: UIToolbarDelegate; items: NSArray; translucent: boolean; readonly barPosition: UIBarPosition; // inherited from UIBarPositioning readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol backgroundImageForToolbarPositionBarMetrics(topOrBottom: UIBarPosition, barMetrics: UIBarMetrics): UIImage; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; setBackgroundImageForToolbarPositionBarMetrics(backgroundImage: UIImage, topOrBottom: UIBarPosition, barMetrics: UIBarMetrics): void; setItemsAnimated(items: NSArray, animated: boolean): void; setShadowImageForToolbarPosition(shadowImage: UIImage, topOrBottom: UIBarPosition): void; shadowImageForToolbarPosition(topOrBottom: UIBarPosition): UIImage; } interface UIToolbarDelegate extends UIBarPositioningDelegate { } declare var UIToolbarDelegate: { prototype: UIToolbarDelegate; }; declare class UITouch extends NSObject { static alloc(): UITouch; // inherited from NSObject static new(): UITouch; // inherited from NSObject readonly altitudeAngle: number; readonly estimatedProperties: UITouchProperties; readonly estimatedPropertiesExpectingUpdates: UITouchProperties; readonly estimationUpdateIndex: number; readonly force: number; readonly gestureRecognizers: NSArray; readonly majorRadius: number; readonly majorRadiusTolerance: number; readonly maximumPossibleForce: number; readonly phase: UITouchPhase; readonly tapCount: number; readonly timestamp: number; readonly type: UITouchType; readonly view: UIView; readonly window: UIWindow; azimuthAngleInView(view: UIView): number; azimuthUnitVectorInView(view: UIView): CGVector; locationInNode(node: SKNode): CGPoint; locationInView(view: UIView): CGPoint; preciseLocationInView(view: UIView): CGPoint; precisePreviousLocationInView(view: UIView): CGPoint; previousLocationInNode(node: SKNode): CGPoint; previousLocationInView(view: UIView): CGPoint; } declare const enum UITouchPhase { Began = 0, Moved = 1, Stationary = 2, Ended = 3, Cancelled = 4 } declare const enum UITouchProperties { PropertyForce = 1, PropertyAzimuth = 2, PropertyAltitude = 4, PropertyLocation = 8 } declare const enum UITouchType { Direct = 0, Indirect = 1, Stylus = 2 } declare var UITrackingRunLoopMode: string; declare class UITraitCollection extends NSObject implements NSCopying, NSSecureCoding { static alloc(): UITraitCollection; // inherited from NSObject static new(): UITraitCollection; // inherited from NSObject static traitCollectionWithDisplayGamut(displayGamut: UIDisplayGamut): UITraitCollection; static traitCollectionWithDisplayScale(scale: number): UITraitCollection; static traitCollectionWithForceTouchCapability(capability: UIForceTouchCapability): UITraitCollection; static traitCollectionWithHorizontalSizeClass(horizontalSizeClass: UIUserInterfaceSizeClass): UITraitCollection; static traitCollectionWithLayoutDirection(layoutDirection: UITraitEnvironmentLayoutDirection): UITraitCollection; static traitCollectionWithPreferredContentSizeCategory(preferredContentSizeCategory: string): UITraitCollection; static traitCollectionWithTraitsFromCollections(traitCollections: NSArray): UITraitCollection; static traitCollectionWithUserInterfaceIdiom(idiom: UIUserInterfaceIdiom): UITraitCollection; static traitCollectionWithVerticalSizeClass(verticalSizeClass: UIUserInterfaceSizeClass): UITraitCollection; readonly displayGamut: UIDisplayGamut; readonly displayScale: number; readonly forceTouchCapability: UIForceTouchCapability; readonly horizontalSizeClass: UIUserInterfaceSizeClass; readonly layoutDirection: UITraitEnvironmentLayoutDirection; readonly preferredContentSizeCategory: string; readonly userInterfaceIdiom: UIUserInterfaceIdiom; readonly verticalSizeClass: UIUserInterfaceSizeClass; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding containsTraitsInCollection(trait: UITraitCollection): boolean; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; } interface UITraitEnvironment extends NSObjectProtocol { traitCollection: UITraitCollection; traitCollectionDidChange(previousTraitCollection: UITraitCollection): void; } declare var UITraitEnvironment: { prototype: UITraitEnvironment; }; declare const enum UITraitEnvironmentLayoutDirection { Unspecified = -1, LeftToRight = 0, RightToLeft = 1 } declare var UITransitionContextFromViewControllerKey: string; declare var UITransitionContextFromViewKey: string; declare var UITransitionContextToViewControllerKey: string; declare var UITransitionContextToViewKey: string; declare const enum UIUserInterfaceIdiom { Unspecified = -1, Phone = 0, Pad = 1, TV = 2, CarPlay = 3 } declare const enum UIUserInterfaceLayoutDirection { LeftToRight = 0, RightToLeft = 1 } declare const enum UIUserInterfaceSizeClass { Unspecified = 0, Compact = 1, Regular = 2 } declare class UIUserNotificationAction extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding { static alloc(): UIUserNotificationAction; // inherited from NSObject static new(): UIUserNotificationAction; // inherited from NSObject readonly activationMode: UIUserNotificationActivationMode; readonly authenticationRequired: boolean; readonly behavior: UIUserNotificationActionBehavior; readonly destructive: boolean; readonly identifier: string; readonly parameters: NSDictionary; readonly title: string; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } declare const enum UIUserNotificationActionBehavior { Default = 0, TextInput = 1 } declare const enum UIUserNotificationActionContext { Default = 0, Minimal = 1 } declare var UIUserNotificationActionResponseTypedTextKey: string; declare const enum UIUserNotificationActivationMode { Foreground = 0, Background = 1 } declare class UIUserNotificationCategory extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding { static alloc(): UIUserNotificationCategory; // inherited from NSObject static new(): UIUserNotificationCategory; // inherited from NSObject readonly identifier: string; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding actionsForContext(context: UIUserNotificationActionContext): NSArray; copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any; } declare class UIUserNotificationSettings extends NSObject { static alloc(): UIUserNotificationSettings; // inherited from NSObject static new(): UIUserNotificationSettings; // inherited from NSObject static settingsForTypesCategories(types: UIUserNotificationType, categories: NSSet): UIUserNotificationSettings; readonly categories: NSSet; readonly types: UIUserNotificationType; } declare var UIUserNotificationTextInputActionButtonTitleKey: string; declare const enum UIUserNotificationType { None = 0, Badge = 1, Sound = 2, Alert = 4 } declare class UIVibrancyEffect extends UIVisualEffect { static alloc(): UIVibrancyEffect; // inherited from NSObject static effectForBlurEffect(blurEffect: UIBlurEffect): UIVibrancyEffect; static new(): UIVibrancyEffect; // inherited from NSObject static notificationCenterVibrancyEffect(): UIVibrancyEffect; static widgetPrimaryVibrancyEffect(): UIVibrancyEffect; static widgetSecondaryVibrancyEffect(): UIVibrancyEffect; } declare function UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(videoPath: string): boolean; declare class UIVideoEditorController extends UINavigationController { static alloc(): UIVideoEditorController; // inherited from NSObject static canEditVideoAtPath(videoPath: string): boolean; static new(): UIVideoEditorController; // inherited from NSObject delegate: any; videoMaximumDuration: number; videoPath: string; videoQuality: UIImagePickerControllerQualityType; } interface UIVideoEditorControllerDelegate extends NSObjectProtocol { videoEditorControllerDidCancel?(editor: UIVideoEditorController): void; videoEditorControllerDidFailWithError?(editor: UIVideoEditorController, error: NSError): void; videoEditorControllerDidSaveEditedVideoToPath?(editor: UIVideoEditorController, editedVideoPath: string): void; } declare var UIVideoEditorControllerDelegate: { prototype: UIVideoEditorControllerDelegate; }; declare class UIView extends UIResponder implements CALayerDelegate, NSCoding, UIAccessibilityIdentification, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusItem, UITraitEnvironment { static addKeyframeWithRelativeStartTimeRelativeDurationAnimations(frameStartTime: number, frameDuration: number, animations: () => void): void; static alloc(): UIView; // inherited from NSObject static animateKeyframesWithDurationDelayOptionsAnimationsCompletion(duration: number, delay: number, options: UIViewKeyframeAnimationOptions, animations: () => void, completion: (p1: boolean) => void): void; static animateWithDurationAnimations(duration: number, animations: () => void): void; static animateWithDurationAnimationsCompletion(duration: number, animations: () => void, completion: (p1: boolean) => void): void; static animateWithDurationDelayOptionsAnimationsCompletion(duration: number, delay: number, options: UIViewAnimationOptions, animations: () => void, completion: (p1: boolean) => void): void; static animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(duration: number, delay: number, dampingRatio: number, velocity: number, options: UIViewAnimationOptions, animations: () => void, completion: (p1: boolean) => void): void; static appearance(): UIView; static appearanceForTraitCollection(trait: UITraitCollection): UIView; static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIView; static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIView; static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIView; static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIView; static beginAnimationsContext(animationID: string, context: interop.Pointer | interop.Reference): void; static commitAnimations(): void; static new(): UIView; // inherited from NSObject static performSystemAnimationOnViewsOptionsAnimationsCompletion(animation: UISystemAnimation, views: NSArray, options: UIViewAnimationOptions, parallelAnimations: () => void, completion: (p1: boolean) => void): void; static performWithoutAnimation(actionsWithoutAnimation: () => void): void; static setAnimationBeginsFromCurrentState(fromCurrentState: boolean): void; static setAnimationCurve(curve: UIViewAnimationCurve): void; static setAnimationDelay(delay: number): void; static setAnimationDelegate(delegate: any): void; static setAnimationDidStopSelector(selector: string): void; static setAnimationDuration(duration: number): void; static setAnimationRepeatAutoreverses(repeatAutoreverses: boolean): void; static setAnimationRepeatCount(repeatCount: number): void; static setAnimationStartDate(startDate: Date): void; static setAnimationTransitionForViewCache(transition: UIViewAnimationTransition, view: UIView, cache: boolean): void; static setAnimationWillStartSelector(selector: string): void; static setAnimationsEnabled(enabled: boolean): void; static transitionFromViewToViewDurationOptionsCompletion(fromView: UIView, toView: UIView, duration: number, options: UIViewAnimationOptions, completion: (p1: boolean) => void): void; static transitionWithViewDurationOptionsAnimationsCompletion(view: UIView, duration: number, options: UIViewAnimationOptions, animations: () => void, completion: (p1: boolean) => void): void; static userInterfaceLayoutDirectionForSemanticContentAttribute(attribute: UISemanticContentAttribute): UIUserInterfaceLayoutDirection; static userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(semanticContentAttribute: UISemanticContentAttribute, layoutDirection: UIUserInterfaceLayoutDirection): UIUserInterfaceLayoutDirection; readonly alignmentRectInsets: UIEdgeInsets; alpha: number; autoresizesSubviews: boolean; autoresizingMask: UIViewAutoresizing; backgroundColor: UIColor; readonly bottomAnchor: NSLayoutYAxisAnchor; bounds: CGRect; readonly centerXAnchor: NSLayoutXAxisAnchor; readonly centerYAnchor: NSLayoutYAxisAnchor; clearsContextBeforeDrawing: boolean; clipsToBounds: boolean; readonly constraints: NSArray; contentMode: UIViewContentMode; contentScaleFactor: number; contentStretch: CGRect; readonly effectiveUserInterfaceLayoutDirection: UIUserInterfaceLayoutDirection; exclusiveTouch: boolean; readonly firstBaselineAnchor: NSLayoutYAxisAnchor; readonly focused: boolean; frame: CGRect; gestureRecognizers: NSArray; readonly hasAmbiguousLayout: boolean; readonly heightAnchor: NSLayoutDimension; hidden: boolean; readonly intrinsicContentSize: CGSize; readonly lastBaselineAnchor: NSLayoutYAxisAnchor; readonly layer: CALayer; readonly layoutGuides: NSArray; layoutMargins: UIEdgeInsets; readonly layoutMarginsGuide: UILayoutGuide; readonly leadingAnchor: NSLayoutXAxisAnchor; readonly leftAnchor: NSLayoutXAxisAnchor; maskView: UIView; motionEffects: NSArray; multipleTouchEnabled: boolean; opaque: boolean; preservesSuperviewLayoutMargins: boolean; readonly readableContentGuide: UILayoutGuide; restorationIdentifier: string; readonly rightAnchor: NSLayoutXAxisAnchor; semanticContentAttribute: UISemanticContentAttribute; readonly subviews: NSArray; readonly superview: UIView; tag: number; tintAdjustmentMode: UIViewTintAdjustmentMode; tintColor: UIColor; readonly topAnchor: NSLayoutYAxisAnchor; readonly trailingAnchor: NSLayoutXAxisAnchor; translatesAutoresizingMaskIntoConstraints: boolean; userInteractionEnabled: boolean; readonly viewForFirstBaselineLayout: UIView; readonly viewForLastBaselineLayout: UIView; readonly widthAnchor: NSLayoutDimension; readonly window: UIWindow; static readonly areAnimationsEnabled: boolean; static readonly inheritedAnimationDuration: number; static readonly layerClass: typeof NSObject; static readonly requiresConstraintBasedLayout: boolean; accessibilityIdentifier: string; // inherited from UIAccessibilityIdentification readonly canBecomeFocused: boolean; // inherited from UIFocusItem center: CGPoint; // inherited from UIDynamicItem readonly collisionBoundingPath: UIBezierPath; // inherited from UIDynamicItem readonly collisionBoundsType: UIDynamicItemCollisionBoundsType; // inherited from UIDynamicItem readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly preferredFocusEnvironments: NSArray; // inherited from UIFocusEnvironment readonly preferredFocusedView: UIView; // inherited from UIFocusEnvironment readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly traitCollection: UITraitCollection; // inherited from UITraitEnvironment transform: CGAffineTransform; // inherited from UIDynamicItem readonly // inherited from NSObjectProtocol constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { frame: CGRect; }); actionForLayerForKey(layer: CALayer, event: string): CAAction; addConstraint(constraint: NSLayoutConstraint): void; addConstraints(constraints: NSArray): void; addGestureRecognizer(gestureRecognizer: UIGestureRecognizer): void; addLayoutGuide(layoutGuide: UILayoutGuide): void; addMotionEffect(effect: UIMotionEffect): void; addSubview(view: UIView): void; alignmentRectForFrame(frame: CGRect): CGRect; bringSubviewToFront(view: UIView): void; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; constraintsAffectingLayoutForAxis(axis: UILayoutConstraintAxis): NSArray; contentCompressionResistancePriorityForAxis(axis: UILayoutConstraintAxis): number; contentHuggingPriorityForAxis(axis: UILayoutConstraintAxis): number; convertPointFromCoordinateSpace(point: CGPoint, coordinateSpace: UICoordinateSpace): CGPoint; convertPointFromView(point: CGPoint, view: UIView): CGPoint; convertPointToCoordinateSpace(point: CGPoint, coordinateSpace: UICoordinateSpace): CGPoint; convertPointToView(point: CGPoint, view: UIView): CGPoint; convertRectFromCoordinateSpace(rect: CGRect, coordinateSpace: UICoordinateSpace): CGRect; convertRectFromView(rect: CGRect, view: UIView): CGRect; convertRectToCoordinateSpace(rect: CGRect, coordinateSpace: UICoordinateSpace): CGRect; convertRectToView(rect: CGRect, view: UIView): CGRect; decodeRestorableStateWithCoder(coder: NSCoder): void; didAddSubview(subview: UIView): void; didMoveToSuperview(): void; didMoveToWindow(): void; didUpdateFocusInContextWithAnimationCoordinator(context: UIFocusUpdateContext, coordinator: UIFocusAnimationCoordinator): void; displayLayer(layer: CALayer): void; drawLayerInContext(layer: CALayer, ctx: any): void; drawRect(rect: CGRect): void; drawRectForViewPrintFormatter(rect: CGRect, formatter: UIViewPrintFormatter): void; drawViewHierarchyInRectAfterScreenUpdates(rect: CGRect, afterUpdates: boolean): boolean; encodeRestorableStateWithCoder(coder: NSCoder): void; encodeWithCoder(aCoder: NSCoder): void; endEditing(force: boolean): boolean; exchangeSubviewAtIndexWithSubviewAtIndex(index1: number, index2: number): void; exerciseAmbiguityInLayout(): void; frameForAlignmentRect(alignmentRect: CGRect): CGRect; gestureRecognizerShouldBegin(gestureRecognizer: UIGestureRecognizer): boolean; hitTestWithEvent(point: CGPoint, event: UIEvent): UIView; initWithCoder(aDecoder: NSCoder): this; initWithFrame(frame: CGRect): this; insertSubviewAboveSubview(view: UIView, siblingSubview: UIView): void; insertSubviewAtIndex(view: UIView, index: number): void; insertSubviewBelowSubview(view: UIView, siblingSubview: UIView): void; invalidateIntrinsicContentSize(): void; isDescendantOfView(view: UIView): boolean; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; layerWillDraw(layer: CALayer): void; layoutIfNeeded(): void; layoutMarginsDidChange(): void; layoutSublayersOfLayer(layer: CALayer): void; layoutSubviews(): void; needsUpdateConstraints(): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; pointInsideWithEvent(point: CGPoint, event: UIEvent): boolean; removeConstraint(constraint: NSLayoutConstraint): void; removeConstraints(constraints: NSArray): void; removeFromSuperview(): void; removeGestureRecognizer(gestureRecognizer: UIGestureRecognizer): void; removeLayoutGuide(layoutGuide: UILayoutGuide): void; removeMotionEffect(effect: UIMotionEffect): void; resizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets(rect: CGRect, afterUpdates: boolean, capInsets: UIEdgeInsets): UIView; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; sendSubviewToBack(view: UIView): void; setContentCompressionResistancePriorityForAxis(priority: number, axis: UILayoutConstraintAxis): void; setContentHuggingPriorityForAxis(priority: number, axis: UILayoutConstraintAxis): void; setNeedsDisplay(): void; setNeedsDisplayInRect(rect: CGRect): void; setNeedsFocusUpdate(): void; setNeedsLayout(): void; setNeedsUpdateConstraints(): void; shouldUpdateFocusInContext(context: UIFocusUpdateContext): boolean; sizeThatFits(size: CGSize): CGSize; sizeToFit(): void; snapshotViewAfterScreenUpdates(afterUpdates: boolean): UIView; systemLayoutSizeFittingSize(targetSize: CGSize): CGSize; systemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority(targetSize: CGSize, horizontalFittingPriority: number, verticalFittingPriority: number): CGSize; tintColorDidChange(): void; traitCollectionDidChange(previousTraitCollection: UITraitCollection): void; updateConstraints(): void; updateConstraintsIfNeeded(): void; updateFocusIfNeeded(): void; viewForBaselineLayout(): UIView; viewPrintFormatter(): UIViewPrintFormatter; viewWithTag(tag: number): UIView; willMoveToSuperview(newSuperview: UIView): void; willMoveToWindow(newWindow: UIWindow): void; willRemoveSubview(subview: UIView): void; } interface UIViewAnimating extends NSObjectProtocol { fractionComplete: number; reversed: boolean; running: boolean; state: UIViewAnimatingState; finishAnimationAtPosition(finalPosition: UIViewAnimatingPosition): void; pauseAnimation(): void; startAnimation(): void; startAnimationAfterDelay(delay: number): void; stopAnimation(withoutFinishing: boolean): void; } declare var UIViewAnimating: { prototype: UIViewAnimating; }; declare const enum UIViewAnimatingPosition { End = 0, Start = 1, Current = 2 } declare const enum UIViewAnimatingState { Inactive = 0, Active = 1, Stopped = 2 } declare const enum UIViewAnimationCurve { EaseInOut = 0, EaseIn = 1, EaseOut = 2, Linear = 3 } declare const enum UIViewAnimationOptions { LayoutSubviews = 1, AllowUserInteraction = 2, BeginFromCurrentState = 4, Repeat = 8, Autoreverse = 16, OverrideInheritedDuration = 32, OverrideInheritedCurve = 64, AllowAnimatedContent = 128, ShowHideTransitionViews = 256, OverrideInheritedOptions = 512, CurveEaseInOut = 0, CurveEaseIn = 65536, CurveEaseOut = 131072, CurveLinear = 196608, TransitionNone = 0, TransitionFlipFromLeft = 1048576, TransitionFlipFromRight = 2097152, TransitionCurlUp = 3145728, TransitionCurlDown = 4194304, TransitionCrossDissolve = 5242880, TransitionFlipFromTop = 6291456, TransitionFlipFromBottom = 7340032 } declare const enum UIViewAnimationTransition { None = 0, FlipFromLeft = 1, FlipFromRight = 2, CurlUp = 3, CurlDown = 4 } declare const enum UIViewAutoresizing { None = 0, FlexibleLeftMargin = 1, FlexibleWidth = 2, FlexibleRightMargin = 4, FlexibleTopMargin = 8, FlexibleHeight = 16, FlexibleBottomMargin = 32 } declare const enum UIViewContentMode { ScaleToFill = 0, ScaleAspectFit = 1, ScaleAspectFill = 2, Redraw = 3, Center = 4, Top = 5, Bottom = 6, Left = 7, Right = 8, TopLeft = 9, TopRight = 10, BottomLeft = 11, BottomRight = 12 } declare class UIViewController extends UIResponder implements NSCoding, NSExtensionRequestHandling, UIAppearanceContainer, UIContentContainer, UIFocusEnvironment, UIStateRestoring, UITraitEnvironment { static alloc(): UIViewController; // inherited from NSObject static attemptRotationToDeviceOrientation(): void; static new(): UIViewController; // inherited from NSObject static prepareInterstitialAds(): void; automaticallyAdjustsScrollViewInsets: boolean; readonly beingDismissed: boolean; readonly beingPresented: boolean; readonly bottomLayoutGuide: UILayoutSupport; canDisplayBannerAds: boolean; readonly childViewControllerForStatusBarHidden: UIViewController; readonly childViewControllerForStatusBarStyle: UIViewController; readonly childViewControllers: NSArray; contentSizeForViewInPopover: CGSize; definesPresentationContext: boolean; disablesAutomaticKeyboardDismissal: boolean; readonly displayingBannerAd: boolean; edgesForExtendedLayout: UIRectEdge; readonly editButtonItem: UIBarButtonItem; editing: boolean; extendedLayoutIncludesOpaqueBars: boolean; readonly extensionContext: NSExtensionContext; hidesBottomBarWhenPushed: boolean; readonly interfaceOrientation: UIInterfaceOrientation; interstitialPresentationPolicy: ADInterstitialPresentationPolicy; modalInPopover: boolean; modalPresentationCapturesStatusBarAppearance: boolean; modalPresentationStyle: UIModalPresentationStyle; modalTransitionStyle: UIModalTransitionStyle; readonly modalViewController: UIViewController; readonly movingFromParentViewController: boolean; readonly movingToParentViewController: boolean; readonly navigationController: UINavigationController; readonly navigationItem: UINavigationItem; readonly nibBundle: NSBundle; readonly nibName: string; readonly originalContentView: UIView; readonly parentViewController: UIViewController; readonly popoverPresentationController: UIPopoverPresentationController; preferredContentSize: CGSize; readonly preferredInterfaceOrientationForPresentation: UIInterfaceOrientation; readonly preferredStatusBarStyle: UIStatusBarStyle; readonly preferredStatusBarUpdateAnimation: UIStatusBarAnimation; readonly prefersStatusBarHidden: boolean; readonly presentationController: UIPresentationController; readonly presentedViewController: UIViewController; readonly presentingFullScreenAd: boolean; readonly presentingViewController: UIViewController; readonly previewActionItems: NSArray; providesPresentationContextTransitionStyle: boolean; restorationClass: typeof NSObject; restorationIdentifier: string; restoresFocusAfterTransition: boolean; readonly searchDisplayController: UISearchDisplayController; readonly shouldAutomaticallyForwardAppearanceMethods: boolean; readonly shouldAutorotate: boolean; readonly shouldPresentInterstitialAd: boolean; readonly splitViewController: UISplitViewController; readonly storyboard: UIStoryboard; readonly supportedInterfaceOrientations: UIInterfaceOrientationMask; readonly tabBarController: UITabBarController; tabBarItem: UITabBarItem; title: string; toolbarItems: NSArray; readonly topLayoutGuide: UILayoutSupport; readonly transitionCoordinator: UIViewControllerTransitionCoordinator; transitioningDelegate: UIViewControllerTransitioningDelegate; view: UIView; readonly viewIfLoaded: UIView; readonly viewLoaded: boolean; wantsFullScreenLayout: boolean; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly objectRestorationClass: typeof NSObject; // inherited from UIStateRestoring readonly preferredFocusEnvironments: NSArray; // inherited from UIFocusEnvironment readonly preferredFocusedView: UIView; // inherited from UIFocusEnvironment readonly restorationParent: UIStateRestoring; // inherited from UIStateRestoring readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly traitCollection: UITraitCollection; // inherited from UITraitEnvironment readonly // inherited from NSObjectProtocol constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { nibName: string; bundle: NSBundle; }); addChildViewController(childController: UIViewController): void; addKeyCommand(keyCommand: UIKeyCommand): void; allowedChildViewControllersForUnwindingFromSource(source: UIStoryboardUnwindSegueSource): NSArray; applicationFinishedRestoringState(): void; automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers(): boolean; beginAppearanceTransitionAnimated(isAppearing: boolean, animated: boolean): void; beginRequestWithExtensionContext(context: NSExtensionContext): void; canPerformUnwindSegueActionFromViewControllerWithSender(action: string, fromViewController: UIViewController, sender: any): boolean; childViewControllerContainingSegueSource(source: UIStoryboardUnwindSegueSource): UIViewController; class(): typeof NSObject; collapseSecondaryViewControllerForSplitViewController(secondaryViewController: UIViewController, splitViewController: UISplitViewController): void; conformsToProtocol(aProtocol: any /* Protocol */): boolean; decodeRestorableStateWithCoder(coder: NSCoder): void; didAnimateFirstHalfOfRotationToInterfaceOrientation(toInterfaceOrientation: UIInterfaceOrientation): void; didMoveToParentViewController(parent: UIViewController): void; didReceiveMemoryWarning(): void; didRotateFromInterfaceOrientation(fromInterfaceOrientation: UIInterfaceOrientation): void; didUpdateFocusInContextWithAnimationCoordinator(context: UIFocusUpdateContext, coordinator: UIFocusAnimationCoordinator): void; dismissModalViewControllerAnimated(animated: boolean): void; dismissMoviePlayerViewControllerAnimated(): void; dismissViewControllerAnimatedCompletion(flag: boolean, completion: () => void): void; encodeRestorableStateWithCoder(coder: NSCoder): void; encodeWithCoder(aCoder: NSCoder): void; endAppearanceTransition(): void; initWithCoder(aDecoder: NSCoder): this; initWithNibNameBundle(nibNameOrNil: string, nibBundleOrNil: NSBundle): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; loadView(): void; loadViewIfNeeded(): void; overrideTraitCollectionForChildViewController(childViewController: UIViewController): UITraitCollection; performSegueWithIdentifierSender(identifier: string, sender: any): void; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; preferredContentSizeDidChangeForChildContentContainer(container: UIContentContainer): void; prepareForSegueSender(segue: UIStoryboardSegue, sender: any): void; presentModalViewControllerAnimated(modalViewController: UIViewController, animated: boolean): void; presentMoviePlayerViewControllerAnimated(moviePlayerViewController: MPMoviePlayerViewController): void; presentViewControllerAnimatedCompletion(viewControllerToPresent: UIViewController, flag: boolean, completion: () => void): void; registerForPreviewingWithDelegateSourceView(delegate: UIViewControllerPreviewingDelegate, sourceView: UIView): UIViewControllerPreviewing; removeFromParentViewController(): void; removeKeyCommand(keyCommand: UIKeyCommand): void; requestInterstitialAdPresentation(): boolean; respondsToSelector(aSelector: string): boolean; retainCount(): number; rotatingFooterView(): UIView; rotatingHeaderView(): UIView; segueForUnwindingToViewControllerFromViewControllerIdentifier(toViewController: UIViewController, fromViewController: UIViewController, identifier: string): UIStoryboardSegue; self(): this; separateSecondaryViewControllerForSplitViewController(splitViewController: UISplitViewController): UIViewController; setEditingAnimated(editing: boolean, animated: boolean): void; setNeedsFocusUpdate(): void; setNeedsStatusBarAppearanceUpdate(): void; setOverrideTraitCollectionForChildViewController(collection: UITraitCollection, childViewController: UIViewController): void; setToolbarItemsAnimated(toolbarItems: NSArray, animated: boolean): void; shouldAutomaticallyForwardRotationMethods(): boolean; shouldAutorotateToInterfaceOrientation(toInterfaceOrientation: UIInterfaceOrientation): boolean; shouldPerformSegueWithIdentifierSender(identifier: string, sender: any): boolean; shouldUpdateFocusInContext(context: UIFocusUpdateContext): boolean; showDetailViewControllerSender(vc: UIViewController, sender: any): void; showViewControllerSender(vc: UIViewController, sender: any): void; sizeForChildContentContainerWithParentContainerSize(container: UIContentContainer, parentSize: CGSize): CGSize; systemLayoutFittingSizeDidChangeForChildContentContainer(container: UIContentContainer): void; targetViewControllerForActionSender(action: string, sender: any): UIViewController; traitCollectionDidChange(previousTraitCollection: UITraitCollection): void; transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion(fromViewController: UIViewController, toViewController: UIViewController, duration: number, options: UIViewAnimationOptions, animations: () => void, completion: (p1: boolean) => void): void; unregisterForPreviewingWithContext(previewing: UIViewControllerPreviewing): void; unwindForSegueTowardsViewController(unwindSegue: UIStoryboardSegue, subsequentVC: UIViewController): void; updateFocusIfNeeded(): void; updateViewConstraints(): void; viewControllerForUnwindSegueActionFromViewControllerWithSender(action: string, fromViewController: UIViewController, sender: any): UIViewController; viewDidAppear(animated: boolean): void; viewDidDisappear(animated: boolean): void; viewDidLayoutSubviews(): void; viewDidLoad(): void; viewDidUnload(): void; viewWillAppear(animated: boolean): void; viewWillDisappear(animated: boolean): void; viewWillLayoutSubviews(): void; viewWillTransitionToSizeWithTransitionCoordinator(size: CGSize, coordinator: UIViewControllerTransitionCoordinator): void; viewWillUnload(): void; willAnimateFirstHalfOfRotationToInterfaceOrientationDuration(toInterfaceOrientation: UIInterfaceOrientation, duration: number): void; willAnimateRotationToInterfaceOrientationDuration(toInterfaceOrientation: UIInterfaceOrientation, duration: number): void; willAnimateSecondHalfOfRotationFromInterfaceOrientationDuration(fromInterfaceOrientation: UIInterfaceOrientation, duration: number): void; willMoveToParentViewController(parent: UIViewController): void; willRotateToInterfaceOrientationDuration(toInterfaceOrientation: UIInterfaceOrientation, duration: number): void; willTransitionToTraitCollectionWithTransitionCoordinator(newCollection: UITraitCollection, coordinator: UIViewControllerTransitionCoordinator): void; } interface UIViewControllerAnimatedTransitioning extends NSObjectProtocol { animateTransition(transitionContext: UIViewControllerContextTransitioning): void; animationEnded?(transitionCompleted: boolean): void; interruptibleAnimatorForTransition?(transitionContext: UIViewControllerContextTransitioning): UIViewImplicitlyAnimating; transitionDuration(transitionContext: UIViewControllerContextTransitioning): number; } declare var UIViewControllerAnimatedTransitioning: { prototype: UIViewControllerAnimatedTransitioning; }; interface UIViewControllerContextTransitioning extends NSObjectProtocol { animated: boolean; containerView: UIView; interactive: boolean; presentationStyle: UIModalPresentationStyle; targetTransform: CGAffineTransform; transitionWasCancelled: boolean; cancelInteractiveTransition(): void; completeTransition(didComplete: boolean): void; finalFrameForViewController(vc: UIViewController): CGRect; finishInteractiveTransition(): void; initialFrameForViewController(vc: UIViewController): CGRect; pauseInteractiveTransition(): void; updateInteractiveTransition(percentComplete: number): void; viewControllerForKey(key: string): UIViewController; viewForKey(key: string): UIView; } declare var UIViewControllerContextTransitioning: { prototype: UIViewControllerContextTransitioning; }; declare var UIViewControllerHierarchyInconsistencyException: string; interface UIViewControllerInteractiveTransitioning extends NSObjectProtocol { completionCurve?: UIViewAnimationCurve; completionSpeed?: number; wantsInteractiveStart?: boolean; startInteractiveTransition(transitionContext: UIViewControllerContextTransitioning): void; } declare var UIViewControllerInteractiveTransitioning: { prototype: UIViewControllerInteractiveTransitioning; }; interface UIViewControllerPreviewing extends NSObjectProtocol { delegate: UIViewControllerPreviewingDelegate; previewingGestureRecognizerForFailureRelationship: UIGestureRecognizer; sourceRect: CGRect; sourceView: UIView; } declare var UIViewControllerPreviewing: { prototype: UIViewControllerPreviewing; }; interface UIViewControllerPreviewingDelegate extends NSObjectProtocol { previewingContextCommitViewController(previewingContext: UIViewControllerPreviewing, viewControllerToCommit: UIViewController): void; previewingContextViewControllerForLocation(previewingContext: UIViewControllerPreviewing, location: CGPoint): UIViewController; } declare var UIViewControllerPreviewingDelegate: { prototype: UIViewControllerPreviewingDelegate; }; interface UIViewControllerRestoration { } declare var UIViewControllerRestoration: { prototype: UIViewControllerRestoration; viewControllerWithRestorationIdentifierPathCoder(identifierComponents: NSArray, coder: NSCoder): UIViewController; }; declare var UIViewControllerShowDetailTargetDidChangeNotification: string; interface UIViewControllerTransitionCoordinator extends UIViewControllerTransitionCoordinatorContext { animateAlongsideTransitionCompletion(animation: (p1: UIViewControllerTransitionCoordinatorContext) => void, completion: (p1: UIViewControllerTransitionCoordinatorContext) => void): boolean; animateAlongsideTransitionInViewAnimationCompletion(view: UIView, animation: (p1: UIViewControllerTransitionCoordinatorContext) => void, completion: (p1: UIViewControllerTransitionCoordinatorContext) => void): boolean; notifyWhenInteractionChangesUsingBlock(handler: (p1: UIViewControllerTransitionCoordinatorContext) => void): void; notifyWhenInteractionEndsUsingBlock(handler: (p1: UIViewControllerTransitionCoordinatorContext) => void): void; } declare var UIViewControllerTransitionCoordinator: { prototype: UIViewControllerTransitionCoordinator; }; interface UIViewControllerTransitionCoordinatorContext extends NSObjectProtocol { animated: boolean; cancelled: boolean; completionCurve: UIViewAnimationCurve; completionVelocity: number; containerView: UIView; initiallyInteractive: boolean; interactive: boolean; isInterruptible: boolean; percentComplete: number; presentationStyle: UIModalPresentationStyle; targetTransform: CGAffineTransform; transitionDuration: number; viewControllerForKey(key: string): UIViewController; viewForKey(key: string): UIView; } declare var UIViewControllerTransitionCoordinatorContext: { prototype: UIViewControllerTransitionCoordinatorContext; }; interface UIViewControllerTransitioningDelegate extends NSObjectProtocol { animationControllerForDismissedController?(dismissed: UIViewController): UIViewControllerAnimatedTransitioning; animationControllerForPresentedControllerPresentingControllerSourceController?(presented: UIViewController, presenting: UIViewController, source: UIViewController): UIViewControllerAnimatedTransitioning; interactionControllerForDismissal?(animator: UIViewControllerAnimatedTransitioning): UIViewControllerInteractiveTransitioning; interactionControllerForPresentation?(animator: UIViewControllerAnimatedTransitioning): UIViewControllerInteractiveTransitioning; presentationControllerForPresentedViewControllerPresentingViewControllerSourceViewController?(presented: UIViewController, presenting: UIViewController, source: UIViewController): UIPresentationController; } declare var UIViewControllerTransitioningDelegate: { prototype: UIViewControllerTransitioningDelegate; }; interface UIViewImplicitlyAnimating extends UIViewAnimating { addAnimations?(animation: () => void): void; addAnimationsDelayFactor?(animation: () => void, delayFactor: number): void; addCompletion?(completion: (p1: UIViewAnimatingPosition) => void): void; continueAnimationWithTimingParametersDurationFactor?(parameters: UITimingCurveProvider, durationFactor: number): void; } declare var UIViewImplicitlyAnimating: { prototype: UIViewImplicitlyAnimating; }; declare const enum UIViewKeyframeAnimationOptions { LayoutSubviews = 1, AllowUserInteraction = 2, BeginFromCurrentState = 4, Repeat = 8, Autoreverse = 16, OverrideInheritedDuration = 32, OverrideInheritedOptions = 512, CalculationModeLinear = 0, CalculationModeDiscrete = 1024, CalculationModePaced = 2048, CalculationModeCubic = 3072, CalculationModeCubicPaced = 4096 } declare var UIViewNoIntrinsicMetric: number; declare class UIViewPrintFormatter extends UIPrintFormatter { static alloc(): UIViewPrintFormatter; // inherited from NSObject static new(): UIViewPrintFormatter; // inherited from NSObject readonly view: UIView; } declare class UIViewPropertyAnimator extends NSObject implements NSCopying, UIViewImplicitlyAnimating { static alloc(): UIViewPropertyAnimator; // inherited from NSObject static new(): UIViewPropertyAnimator; // inherited from NSObject static runningPropertyAnimatorWithDurationDelayOptionsAnimationsCompletion(duration: number, delay: number, options: UIViewAnimationOptions, animations: () => void, completion: (p1: UIViewAnimatingPosition) => void): UIViewPropertyAnimator; readonly delay: number; readonly duration: number; interruptible: boolean; manualHitTestingEnabled: boolean; readonly timingParameters: UITimingCurveProvider; userInteractionEnabled: boolean; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol fractionComplete: number; // inherited from UIViewAnimating readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol reversed: boolean; // inherited from UIViewAnimating readonly running: boolean; // inherited from UIViewAnimating readonly state: UIViewAnimatingState; // inherited from UIViewAnimating readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { duration: number; controlPoint1: CGPoint; controlPoint2: CGPoint; animations: () => void; }); constructor(o: { duration: number; curve: UIViewAnimationCurve; animations: () => void; }); constructor(o: { duration: number; dampingRatio: number; animations: () => void; }); constructor(o: { duration: number; timingParameters: UITimingCurveProvider; }); addAnimations(animation: () => void): void; addAnimationsDelayFactor(animation: () => void, delayFactor: number): void; addCompletion(completion: (p1: UIViewAnimatingPosition) => void): void; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; continueAnimationWithTimingParametersDurationFactor(parameters: UITimingCurveProvider, durationFactor: number): void; copyWithZone(zone: interop.Pointer | interop.Reference): any; finishAnimationAtPosition(finalPosition: UIViewAnimatingPosition): void; initWithDurationControlPoint1ControlPoint2Animations(duration: number, point1: CGPoint, point2: CGPoint, animations: () => void): this; initWithDurationCurveAnimations(duration: number, curve: UIViewAnimationCurve, animations: () => void): this; initWithDurationDampingRatioAnimations(duration: number, ratio: number, animations: () => void): this; initWithDurationTimingParameters(duration: number, parameters: UITimingCurveProvider): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; pauseAnimation(): void; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; startAnimation(): void; startAnimationAfterDelay(delay: number): void; stopAnimation(withoutFinishing: boolean): void; } declare const enum UIViewTintAdjustmentMode { Automatic = 0, Normal = 1, Dimmed = 2 } declare class UIVisualEffect extends NSObject implements NSCopying, NSSecureCoding { static alloc(): UIVisualEffect; // inherited from NSObject static new(): UIVisualEffect; // inherited from NSObject static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding copyWithZone(zone: interop.Pointer | interop.Reference): any; encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; } declare class UIVisualEffectView extends UIView implements NSSecureCoding { static alloc(): UIVisualEffectView; // inherited from NSObject static appearance(): UIVisualEffectView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIVisualEffectView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIVisualEffectView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIVisualEffectView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIVisualEffectView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIVisualEffectView; // inherited from UIAppearance static new(): UIVisualEffectView; // inherited from NSObject readonly contentView: UIView; effect: UIVisualEffect; static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding constructor(o: { coder: NSCoder; }); // inherited from NSCoding constructor(o: { effect: UIVisualEffect; }); encodeWithCoder(aCoder: NSCoder): void; initWithCoder(aDecoder: NSCoder): this; initWithEffect(effect: UIVisualEffect): this; } declare const enum UIWebPaginationBreakingMode { Page = 0, Column = 1 } declare const enum UIWebPaginationMode { Unpaginated = 0, LeftToRight = 1, TopToBottom = 2, BottomToTop = 3, RightToLeft = 4 } declare class UIWebView extends UIView implements NSCoding, UIScrollViewDelegate { static alloc(): UIWebView; // inherited from NSObject static appearance(): UIWebView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIWebView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIWebView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIWebView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIWebView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIWebView; // inherited from UIAppearance static new(): UIWebView; // inherited from NSObject allowsInlineMediaPlayback: boolean; allowsLinkPreview: boolean; allowsPictureInPictureMediaPlayback: boolean; readonly canGoBack: boolean; readonly canGoForward: boolean; dataDetectorTypes: UIDataDetectorTypes; delegate: UIWebViewDelegate; detectsPhoneNumbers: boolean; gapBetweenPages: number; keyboardDisplayRequiresUserAction: boolean; readonly loading: boolean; mediaPlaybackAllowsAirPlay: boolean; mediaPlaybackRequiresUserAction: boolean; readonly pageCount: number; pageLength: number; paginationBreakingMode: UIWebPaginationBreakingMode; paginationMode: UIWebPaginationMode; readonly request: NSURLRequest; scalesPageToFit: boolean; readonly scrollView: UIScrollView; suppressesIncrementalRendering: boolean; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { coder: NSCoder; }); // inherited from NSCoding class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; encodeWithCoder(aCoder: NSCoder): void; goBack(): void; goForward(): void; initWithCoder(aDecoder: NSCoder): this; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; loadDataMIMETypeTextEncodingNameBaseURL(data: NSData, MIMEType: string, textEncodingName: string, baseURL: NSURL): void; loadHTMLStringBaseURL(string: string, baseURL: NSURL): void; loadRequest(request: NSURLRequest): void; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; reload(): void; respondsToSelector(aSelector: string): boolean; retainCount(): number; scrollViewDidEndDecelerating(scrollView: UIScrollView): void; scrollViewDidEndDraggingWillDecelerate(scrollView: UIScrollView, decelerate: boolean): void; scrollViewDidEndScrollingAnimation(scrollView: UIScrollView): void; scrollViewDidEndZoomingWithViewAtScale(scrollView: UIScrollView, view: UIView, scale: number): void; scrollViewDidScroll(scrollView: UIScrollView): void; scrollViewDidScrollToTop(scrollView: UIScrollView): void; scrollViewDidZoom(scrollView: UIScrollView): void; scrollViewShouldScrollToTop(scrollView: UIScrollView): boolean; scrollViewWillBeginDecelerating(scrollView: UIScrollView): void; scrollViewWillBeginDragging(scrollView: UIScrollView): void; scrollViewWillBeginZoomingWithView(scrollView: UIScrollView, view: UIView): void; scrollViewWillEndDraggingWithVelocityTargetContentOffset(scrollView: UIScrollView, velocity: CGPoint, targetContentOffset: interop.Pointer | interop.Reference): void; self(): this; stopLoading(): void; stringByEvaluatingJavaScriptFromString(script: string): string; viewForZoomingInScrollView(scrollView: UIScrollView): UIView; } interface UIWebViewDelegate extends NSObjectProtocol { webViewDidFailLoadWithError?(webView: UIWebView, error: NSError): void; webViewDidFinishLoad?(webView: UIWebView): void; webViewDidStartLoad?(webView: UIWebView): void; webViewShouldStartLoadWithRequestNavigationType?(webView: UIWebView, request: NSURLRequest, navigationType: UIWebViewNavigationType): boolean; } declare var UIWebViewDelegate: { prototype: UIWebViewDelegate; }; declare const enum UIWebViewNavigationType { LinkClicked = 0, FormSubmitted = 1, BackForward = 2, Reload = 3, FormResubmitted = 4, Other = 5 } declare class UIWindow extends UIView { static alloc(): UIWindow; // inherited from NSObject static appearance(): UIWindow; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): UIWindow; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UIWindow; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray): UIWindow; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UIWindow; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray): UIWindow; // inherited from UIAppearance static new(): UIWindow; // inherited from NSObject readonly keyWindow: boolean; rootViewController: UIViewController; screen: UIScreen; windowLevel: number; becomeKeyWindow(): void; convertPointFromWindow(point: CGPoint, window: UIWindow): CGPoint; convertPointToWindow(point: CGPoint, window: UIWindow): CGPoint; convertRectFromWindow(rect: CGRect, window: UIWindow): CGRect; convertRectToWindow(rect: CGRect, window: UIWindow): CGRect; makeKeyAndVisible(): void; makeKeyWindow(): void; resignKeyWindow(): void; sendEvent(event: UIEvent): void; } declare var UIWindowDidBecomeHiddenNotification: string; declare var UIWindowDidBecomeKeyNotification: string; declare var UIWindowDidBecomeVisibleNotification: string; declare var UIWindowDidResignKeyNotification: string; declare var UIWindowLevelAlert: number; declare var UIWindowLevelNormal: number; declare var UIWindowLevelStatusBar: number;