Module Contacts

Index

Variables

Modules

Interfaces

Functions

Variables

AUTHORIZATION_AUTHORIZED: number

AUTHORIZATION_DENIED: number

AUTHORIZATION_RESTRICTED: number

AUTHORIZATION_UNKNOWN: number

CONTACTS_KIND_ORGANIZATION: number

CONTACTS_KIND_PERSON: number

CONTACTS_SORT_FIRST_NAME: number

CONTACTS_SORT_LAST_NAME: number

bubbleParent: boolean

contactsAuthorization: number

Functions

addEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

applyProperties(props: Dictionary)

Parameters

createGroup(parameters?: Dictionary): Group

Parameters

Returns

Group

createPerson(parameters?: Dictionary): Person

Parameters

Returns

Person

fireEvent(name: string, event: Dictionary)

Parameters

getAllGroups(): Group[]

Returns

Group[]

getAllPeople(limit: number): Person[]

Parameters

  • limit: number

Returns

Person[]

getBubbleParent(): boolean

Returns

boolean

getContactsAuthorization(): number

Returns

number

getGroupByID(id: number): Group

Parameters

  • id: number

Returns

Group

getPeopleWithName(name: string): Person[]

Parameters

  • name: string

Returns

Person[]

getPersonByID(id: number): Person

Parameters

  • id: number

Returns

Person

removeEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

removeGroup(group: Group)

Parameters

removePerson(person: Person)

Parameters

requestAuthorization(callback: (...args: any[]) => any)

Parameters

  • callback: (...args: any[]) => any

revert()

save(contacts: Person[])

Parameters

setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

showContacts(params: showContactsParams)

Parameters