Options
All
  • Public
  • Public/Protected
  • All
Menu

Module ios

Module with ios specific utilities.

Index

Variables

MajorVersion

MajorVersion: number

Gets the iOS device major version (for 8.1 will return 8).

Functions

getCurrentAppPath

  • getCurrentAppPath(): string
  • Gets the root folder for the current application. This Folder is private for the application and not accessible from Users/External apps. iOS - this folder is read-only and contains the app and all its resources.

    Returns string

getVisibleViewController

  • getVisibleViewController(rootViewController: any): any
  • Gets the currently visible(topmost) UIViewController.

    Parameters

    • rootViewController: any

      The root UIViewController instance to start searching from (normally window.rootViewController). Returns the visible UIViewController.

    Returns any

getter

  • getter<T>(_this: any, propertyValue: T | function): T
  • Checks if the property is a function and if it is, calls it on this. Designed to support backward compatibility for methods that became properties. Will not work on delegates since it checks if the propertyValue is a function, and delegates are marshalled as functions. Example: getter(NSRunLoop, NSRunLoop.currentRunLoop).runUntilDate(NSDate.dateWithTimeIntervalSinceNow(waitTime));

    Type parameters

    • T

    Parameters

    • _this: any
    • propertyValue: T | function

    Returns T

isLandscape

  • isLandscape(): boolean
  • Gets an information about if current mode is Landscape.

    Returns boolean

joinPaths

  • joinPaths(...paths: string[]): string
  • Joins an array of file paths.

    Parameters

    • Rest ...paths: string[]

      An array of paths. Returns the joined path.

    Returns string

openFile

  • openFile(filePath: string): boolean
  • Opens file with associated application.

    Parameters

    • filePath: string

      The file path.

    Returns boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method