Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AndroidApplication

Hierarchy

Index

Constructors

constructor

Properties

Private _isViewBase

_isViewBase: boolean

context

context: any

foregroundActivity

foregroundActivity: any

init

init: function

Type declaration

    • (nativeApp: any): void
    • Parameters

      • nativeApp: any

      Returns void

nativeApp

nativeApp: any

orientation

orientation: "portrait" | "landscape" | "unknown"

packageName

packageName: string

paused

paused: boolean

startActivity

startActivity: any

systemAppearance

systemAppearance: "dark" | "light"

Static activityBackPressedEvent

activityBackPressedEvent: string

Static activityCreatedEvent

activityCreatedEvent: string

Static activityDestroyedEvent

activityDestroyedEvent: string

Static activityNewIntentEvent

activityNewIntentEvent: string

Static activityPausedEvent

activityPausedEvent: string

Static activityRequestPermissionsEvent

activityRequestPermissionsEvent: string

Static activityResultEvent

activityResultEvent: string

Static activityResumedEvent

activityResumedEvent: string

Static activityStartedEvent

activityStartedEvent: string

Static activityStoppedEvent

activityStoppedEvent: string

Static propertyChangeEvent

propertyChangeEvent: string

Static saveActivityStateEvent

saveActivityStateEvent: string

Methods

Private _createPropertyChangeData

Private _emit

  • _emit(eventNames: string): any

addEventListener

  • addEventListener(eventNames: string, callback: function, thisArg?: any): any

get

  • get(name: string): any

hasListeners

  • hasListeners(eventName: string): boolean

notify

  • notify<T>(data: T): void

notifyPropertyChange

  • notifyPropertyChange(propertyName: string, value: any, oldValue?: any): void

off

  • off(eventNames: string, callback?: any, thisArg?: any): any

on

  • on(eventNames: string, callback: function, thisArg?: any): any
  • on(event: "activityCreated", callback: function, thisArg?: any): any
  • on(event: "activityDestroyed", callback: function, thisArg?: any): any
  • on(event: "activityStarted", callback: function, thisArg?: any): any
  • on(event: "activityPaused", callback: function, thisArg?: any): any
  • on(event: "activityResumed", callback: function, thisArg?: any): any
  • on(event: "activityStopped", callback: function, thisArg?: any): any
  • on(event: "saveActivityState", callback: function, thisArg?: any): any
  • on(event: "activityResult", callback: function, thisArg?: any): any
  • on(event: "activityBackPressed", callback: function, thisArg?: any): any
  • on(event: "activityNewIntent", callback: function, thisArg?: any): any
  • on(event: "activityRequestPermissions", callback: function, thisArg?: any): any

once

  • once(event: string, callback: function, thisArg?: any): any

registerBroadcastReceiver

  • registerBroadcastReceiver(intentFilter: string, onReceiveCallback: function): void
  • Parameters

    • intentFilter: string
    • onReceiveCallback: function
        • (context: any, intent: any): void
        • Parameters

          • context: any
          • intent: any

          Returns void

    Returns void

removeEventListener

  • removeEventListener(eventNames: string, callback?: any, thisArg?: any): any

set

  • set(name: string, value: any): void

setProperty

  • setProperty(name: string, value: any): void

unregisterBroadcastReceiver

  • unregisterBroadcastReceiver(intentFilter: string): 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