### Hierarchy

- ServiceProvider
  - App
    - MockApp
    - WebApp
    - XFApp

### Implements

- IDisposable

## Index

### Constructors

- constructor

### Properties

- appReady
- dispatcher
- parent
- screen

### Accessors

- contextId
- global
- url

### Methods

- broadcast
- callLater
- createBusyIndicator
- dispose
- get
- getValue
- invokeReady
- main
- newScope
- onError
- onReady
- put
- resolve
- runAsync
- subscribe
- syncUrl
- updateDefaultStyle
- waitForPendingCalls

## Constructors

### constructor

- new App(): App

- Overrides ServiceProvider.constructor

  - Defined in src/App.ts:66

  #### Returns App

## Properties

### appReady

appReady: boolean = false

- Defined in src/App.ts:45

This must be set explicitly as it can be used outside to detect if app is ready. This will not be set automatically by framework.

### dispatcher

dispatcher: AtomDispatcher

- Defined in src/App.ts:37

### parent

parent: ServiceProvider

Inherited from ServiceProvider.parent

- Defined in src/di/ServiceProvider.ts:17

### screen

screen: IScreen

- Defined in src/App.ts:39

## Accessors

### contextId

- get contextId(): string

- - Defined in src/App.ts:64

  #### Returns string

### global

- get global(): ServiceProvider

- Inherited from ServiceProvider.global

  - Defined in src/di/ServiceProvider.ts:13

  #### Returns ServiceProvider

### url

- get url(): AtomUri
- set url(v: AtomUri): void

- - Defined in src/App.ts:55

  #### Returns AtomUri

- - Defined in src/App.ts:59

  #### Parameters

  - ##### v: AtomUri

  #### Returns void

## Methods

### broadcast

- broadcast(channel: string, data: any): void

- - Defined in src/App.ts:140

  Broadcast given data to channel, only within the current window.

  memberof

    AtomDevice

  #### Parameters

  - ##### channel: string

  - ##### data: any

  #### Returns void

### callLater

- callLater(f: function): void

- - Defined in src/App.ts:91

  #### Parameters

  - ##### f: function

    - - (): void

      - #### Returns void

### createBusyIndicator

- createBusyIndicator(): IDisposable

- - Defined in src/App.ts:81

  #### Returns IDisposable

### dispose

- dispose(): void

- Implementation of IDisposable.dispose

  Inherited from ServiceProvider.dispose

  - Defined in src/di/ServiceProvider.ts:85

  #### Returns void

### get

- get<T>(key: IClassOf<T>): T

- Inherited from ServiceProvider.get

  - Defined in src/di/ServiceProvider.ts:25

  #### Type parameters

  - #### T

  #### Parameters

  - ##### key: IClassOf<T>

  #### Returns T

### getValue

- getValue(sd: ServiceDescription): any

- Inherited from ServiceProvider.getValue

  - Defined in src/di/ServiceProvider.ts:69

  #### Parameters

  - ##### sd: ServiceDescription

  #### Returns any

### Protected invokeReady

- invokeReady(): void

- - Defined in src/App.ts:193

  #### Returns void

### main

- main(): void

- - Defined in src/App.ts:180

  #### Returns void

### newScope

- newScope(): ServiceProvider

- Inherited from ServiceProvider.newScope

  - Defined in src/di/ServiceProvider.ts:81

  #### Returns ServiceProvider

### onError

- onError(error: any): void

- - Defined in src/App.ts:127

  #### Parameters

  - ##### error: any

  #### Returns void

### Protected onReady

- onReady(f: function): void

- - Defined in src/App.ts:185

  #### Parameters

  - ##### f: function

    - - (): any

      - #### Returns any

  #### Returns void

### put

- put(key: any, value: any): void

- Inherited from ServiceProvider.put

  - Defined in src/di/ServiceProvider.ts:29

  #### Parameters

  - ##### key: any

  - ##### value: any

  #### Returns void

### resolve

- resolve<T>(key: T, create?: boolean, defValue?: IAnyInstanceType<T>): IAnyInstanceType<T>

- Inherited from ServiceProvider.resolve

  - Defined in src/di/ServiceProvider.ts:37

  #### Type parameters

  - #### T

  #### Parameters

  - ##### key: T

  - ##### Default value create: boolean = false

  - ##### Optional defValue: IAnyInstanceType<T>

  #### Returns IAnyInstanceType<T>

### runAsync

- runAsync<T>(tf: function): void

- - Defined in src/App.ts:112

  This method will run any asynchronous method and it will display an error if it will fail asynchronously

  template

    T

  memberof

    AtomDevice

  #### Type parameters

  - #### T

  #### Parameters

  - ##### tf: function

    - - (): Promise<T>

      - #### Returns Promise<T>

  #### Returns void

### subscribe

- subscribe(channel: string, action: AtomAction): IDisposable

- - Defined in src/App.ts:163

  Subscribe for given channel with action that will be executed when anyone will broadcast (this only works within the current browser window)

  This method returns a disposable, when you call `.dispose()` it will unsubscribe for current subscription

  memberof

    AtomDevice

  #### Parameters

  - ##### channel: string

  - ##### action: AtomAction

  #### Returns IDisposable

  Disposable that supports removal of subscription

### syncUrl

- syncUrl(): void

- - Defined in src/App.ts:87

  #### Returns void

### updateDefaultStyle

- updateDefaultStyle(content: string): void

- - Defined in src/App.ts:95

  #### Parameters

  - ##### content: string

  #### Returns void

### waitForPendingCalls

- waitForPendingCalls(): Promise<any>

- - Defined in src/App.ts:99

  #### Returns Promise<any>

Generated using TypeDoc