Options
显示所有项
  • 仅显示公有项
  • 显示保护/公有项
  • 显示所有项
Menu

继承关系

  • EventEmitter
    • ActivityLifecycle

索引

方法

addListener

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

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

          • 剩余 ...args: any[]

          返回 void

    返回 ActivityLifecycle

emit

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

    • event: string | symbol
    • 剩余 ...args: any[]

    返回 boolean

eventNames

  • eventNames(): (string | symbol)[]
  • 返回 (string | symbol)[]

getMaxListeners

  • getMaxListeners(): number
  • 返回 number

listenerCount

  • listenerCount(event: string | symbol): number
  • 参数

    • event: string | symbol

    返回 number

listeners

  • listeners(event: string | symbol): 函数[]
  • 参数

    • event: string | symbol

    返回 函数[]

off

  • 参数

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

          • 剩余 ...args: any[]

          返回 void

    返回 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
  • 参数

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

          • activity: Activity
          • 可选 savedInstanceState: Bundle

          返回 void

    返回 ActivityLifecycle

  • 参数

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

          • activity: Activity

          返回 void

    返回 ActivityLifecycle

  • 参数

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

          • activity: Activity

          返回 void

    返回 ActivityLifecycle

  • 参数

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

          • activity: Activity

          返回 void

    返回 ActivityLifecycle

  • 参数

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

          • activity: Activity

          返回 void

    返回 ActivityLifecycle

  • 参数

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

          • activity: Activity
          • outState: Bundle

          返回 void

    返回 ActivityLifecycle

  • 参数

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

          • activity: Activity

          返回 void

    返回 ActivityLifecycle

  • 参数

    • event: "all_activities_destroyed"
    • listener: () => void
        • (): void
        • 返回 void

    返回 ActivityLifecycle

once

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

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

          • 剩余 ...args: any[]

          返回 void

    返回 ActivityLifecycle

prependListener

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

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

          • 剩余 ...args: any[]

          返回 void

    返回 ActivityLifecycle

prependOnceListener

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

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

          • 剩余 ...args: any[]

          返回 void

    返回 ActivityLifecycle

rawListeners

  • rawListeners(event: string | symbol): 函数[]
  • 参数

    • event: string | symbol

    返回 函数[]

removeAllListeners

  • 参数

    • 可选 event: string | symbol

    返回 ActivityLifecycle

removeListener

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

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

          • 剩余 ...args: any[]

          返回 void

    返回 ActivityLifecycle

setMaxListeners