ContactsManager service
#
Instanciating the serviceLoad the following scripts:
You can then get an instance of the service with code similar to:
Then the developer can use _contactsManager as ContactsManager service instance.
This service implements the ContactsFactory interface.
#
ChangeReason enumeration#
FilterByOption enumeration#
FilterOption enumeration#
Order enumeration#
SortOption enumeration#
Address dictionnary#
BlockedNumberChangeEvent dictionnary#
BlockedNumberFindOptions dictionnary#
ContactField dictionnary#
ContactFindSortOptions dictionnary#
ContactInfo dictionnary#
ContactSortOptions dictionnary#
ContactTelField dictionnary#
ContactsChangeEvent dictionnary#
GroupChangeEvent dictionnary#
GroupInfo dictionnary#
IceInfo dictionnary#
SimContactInfo dictionnary#
SimContactLoadedEvent dictionnary#
SpeedDialChangeEvent dictionnary#
SpeedDialInfo dictionnary#
ContactCursor Interface#
Methods  next
next()
Resolves with [ContactInfo]
Rejects with void
#
ContactsFactory Interface#
Methods  add addBlockedNumber addGroup addSpeedDial clearContacts find findBlockedNumbers get getAll getAllBlockedNumbers getAllGroups getAllIce getContactidsFromGroup getCount getSpeedDials importVcf matches remove removeBlockedNumber removeGroup removeIce removeSpeedDial setIce update updateGroup updateSpeedDial
// contacts: [ContactInfo]
add(contacts)
Resolves with void
Rejects with void
// number: string
addBlockedNumber(number)
Resolves with void
Rejects with void
// name: string
addGroup(name)
Resolves with void
Rejects with void
// dialKey: string
// tel: string
// contactId: string
addSpeedDial(dialKey, tel, contactId)
Resolves with void
Rejects with void
clearContacts()
Resolves with void
Rejects with void
// params: ContactFindSortOptions
// batchSize: integer
find(params, batchSize)
Resolves with ContactCursor
Rejects with void
// options: BlockedNumberFindOptions
findBlockedNumbers(options)
Resolves with [string]?
Rejects with void
// id: string
// onlyMainData: boolean
get(id, onlyMainData)
Resolves with ContactInfo
Rejects with void
// options: ContactSortOptions
// batchSize: integer
// onlyMainData: boolean
getAll(options, batchSize, onlyMainData)
Resolves with ContactCursor
Rejects with void
getAllBlockedNumbers()
Resolves with [string]?
Rejects with void
getAllGroups()
Resolves with [GroupInfo]?
Rejects with void
getAllIce()
Resolves with [IceInfo]?
Rejects with void
// groupId: string
getContactidsFromGroup(groupId)
Resolves with [string]?
Rejects with void
getCount()
Resolves with integer
Rejects with void
getSpeedDials()
Resolves with [SpeedDialInfo]?
Rejects with void
// vcf: string
importVcf(vcf)
Resolves with integer
Rejects with void
// filterByOption: FilterByOption
// filter: FilterOption
// value: string
matches(filterByOption, filter, value)
Resolves with boolean
Rejects with void
// contactIds: [string]
remove(contactIds)
Resolves with void
Rejects with void
// number: string
removeBlockedNumber(number)
Resolves with void
Rejects with void
// id: string
removeGroup(id)
Resolves with void
Rejects with void
// contactId: string
removeIce(contactId)
Resolves with void
Rejects with void
// dialKey: string
removeSpeedDial(dialKey)
Resolves with void
Rejects with void
// contactId: string
// position: integer
setIce(contactId, position)
Resolves with void
Rejects with void
// contacts: [ContactInfo]
update(contacts)
Resolves with void
Rejects with void
// id: string
// name: string
updateGroup(id, name)
Resolves with void
Rejects with void
// dialKey: string
// tel: string
// contactId: string
updateSpeedDial(dialKey, tel, contactId)
Resolves with void
Rejects with void
#
Events  BLOCKEDNUMBER_CHANGE CONTACTS_CHANGE GROUP_CHANGE SIM_CONTACT_LOADED SPEEDDIAL_CHANGE
The BLOCKEDNUMBER_CHANGE event emits a BlockedNumberChangeEvent
To manage this event, use code similar to:
The CONTACTS_CHANGE event emits a ContactsChangeEvent
To manage this event, use code similar to:
The GROUP_CHANGE event emits a GroupChangeEvent
To manage this event, use code similar to:
The SIM_CONTACT_LOADED event emits a SimContactLoadedEvent
To manage this event, use code similar to:
The SPEEDDIAL_CHANGE event emits a SpeedDialChangeEvent
To manage this event, use code similar to: