Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "connectivity"

Contains connectivity utility methods.

Index

Functions

getConnectionType

  • getConnectionType(): number
  • Gets the type of connection. Returns a value from the connectivity.connectionType enumeration. To use this method on Android you need to have the android.permission.ACCESS_NETWORK_STATE permission added to the AndroidManifest.xml file.

    Returns number

startMonitoring

  • startMonitoring(connectionTypeChangedCallback: function): void
  • Starts monitoring the connection type.

    Parameters

    • connectionTypeChangedCallback: function
        • (newConnectionType: number): void
        • Parameters

          • newConnectionType: number

          Returns void

    Returns void

stopMonitoring

  • stopMonitoring(): void

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