Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ActivityLifecycle

Hierarchy

  • EventEmitter
    • ActivityLifecycle

Index

Methods

addListener

  • addListener(event: string | symbol, listener: (...args: any[]) => void): ActivityLifecycle
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ActivityLifecycle

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

getMaxListeners

  • getMaxListeners(): number
  • Returns number

listenerCount

  • listenerCount(event: string | symbol): number
  • Parameters

    • event: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ActivityLifecycle

on

  • on(event: "activity_created", listener: (activity: Activity, savedInstanceState?: Bundle) => void): ActivityLifecycle
  • on(event: "activity_started", listener: (activity: Activity) => void): ActivityLifecycle
  • on(event: "activity_resumed", listener: (activity: Activity) => void): ActivityLifecycle
  • on(event: "activity_paused", listener: (activity: Activity) => void): ActivityLifecycle
  • on(event: "activity_stopped", listener: (activity: Activity) => void): ActivityLifecycle
  • on(event: "activity_save_instance_state", listener: (activity: Activity, outState: Bundle) => void): ActivityLifecycle
  • on(event: "activity_destroyed", listener: (activity: Activity) => void): ActivityLifecycle
  • on(event: "all_activities_destroyed", listener: () => void): ActivityLifecycle
  • Parameters

    • event: "activity_created"
    • listener: (activity: Activity, savedInstanceState?: Bundle) => void
        • (activity: Activity, savedInstanceState?: Bundle): void
        • Parameters

          • activity: Activity
          • Optional savedInstanceState: Bundle

          Returns void

    Returns ActivityLifecycle

  • Parameters

    • event: "activity_started"
    • listener: (activity: Activity) => void
        • (activity: Activity): void
        • Parameters

          • activity: Activity

          Returns void

    Returns ActivityLifecycle

  • Parameters

    • event: "activity_resumed"
    • listener: (activity: Activity) => void
        • (activity: Activity): void
        • Parameters

          • activity: Activity

          Returns void

    Returns ActivityLifecycle

  • Parameters

    • event: "activity_paused"
    • listener: (activity: Activity) => void
        • (activity: Activity): void
        • Parameters

          • activity: Activity

          Returns void

    Returns ActivityLifecycle

  • Parameters

    • event: "activity_stopped"
    • listener: (activity: Activity) => void
        • (activity: Activity): void
        • Parameters

          • activity: Activity

          Returns void

    Returns ActivityLifecycle

  • Parameters

    • event: "activity_save_instance_state"
    • listener: (activity: Activity, outState: Bundle) => void
        • (activity: Activity, outState: Bundle): void
        • Parameters

          • activity: Activity
          • outState: Bundle

          Returns void

    Returns ActivityLifecycle

  • Parameters

    • event: "activity_destroyed"
    • listener: (activity: Activity) => void
        • (activity: Activity): void
        • Parameters

          • activity: Activity

          Returns void

    Returns ActivityLifecycle

  • Parameters

    • event: "all_activities_destroyed"
    • listener: () => void
        • (): void
        • Returns void

    Returns ActivityLifecycle

once

  • once(event: string | symbol, listener: (...args: any[]) => void): ActivityLifecycle
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ActivityLifecycle

prependListener

  • prependListener(event: string | symbol, listener: (...args: any[]) => void): ActivityLifecycle
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ActivityLifecycle

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): ActivityLifecycle
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ActivityLifecycle

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

removeAllListeners

  • Parameters

    • Optional event: string | symbol

    Returns ActivityLifecycle

removeListener

  • removeListener(event: string | symbol, listener: (...args: any[]) => void): ActivityLifecycle
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns ActivityLifecycle

setMaxListeners

  • Parameters

    • n: number

    Returns ActivityLifecycle