| Package | Description |
|---|---|
| com.codename1.contacts |
Provides access to the contacts list from the device address book
|
| com.codename1.impl |
The implementation package should not be used by developers, it is an internal implementation detail
which will break compatibility between major Codename One releases.
|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| Modifier and Type | Method and Description |
|---|---|
Contact[] |
ContactsManager.getAllContacts(boolean withNumbers,
boolean includesFullName,
boolean includesPicture,
boolean includesNumbers,
boolean includesEmail,
boolean includeAddress)
Deprecated.
this method was incorrectly introduced use getContacts instead
|
static Contact |
ContactsManager.getContactById(String id)
This method returns a Contact by the contact id
|
static Contact |
ContactsManager.getContactById(String id,
boolean includesFullName,
boolean includesPicture,
boolean includesNumbers,
boolean includesEmail,
boolean includeAddress)
This method returns a Contact by the contact id and fills it's data
according to the given flags
|
static Contact[] |
ContactsManager.getContacts(boolean withNumbers,
boolean includesFullName,
boolean includesPicture,
boolean includesNumbers,
boolean includesEmail,
boolean includeAddress)
Notice: this method might be very slow and should be invoked on a separate thread!
It might have platform specific optimizations over getAllContacts followed by looping
over individual contacts but that isn't guaranteed.
|
| Modifier and Type | Method and Description |
|---|---|
Contact[] |
CodenameOneImplementation.getAllContacts(boolean withNumbers,
boolean includesFullName,
boolean includesPicture,
boolean includesNumbers,
boolean includesEmail,
boolean includeAddress)
Notice: this method might be very slow and should be invoked on a separate thread!
It might have platform specific optimizations over getAllContacts followed by looping
over individual contacts but that isn't guaranteed.
|
Contact |
CodenameOneImplementation.getContactById(String id)
Get a Contact according to it's contact id.
|
Contact |
CodenameOneImplementation.getContactById(String id,
boolean includesFullName,
boolean includesPicture,
boolean includesNumbers,
boolean includesEmail,
boolean includeAddress)
This method returns a Contact by the contact id and fills it's data
according to the given flags
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
CodenameOneImplementation.getLinkedContactIds(Contact c)
Gets the IDs of all contacts that are linked to the provided contact.
|
| Modifier and Type | Method and Description |
|---|---|
Contact[] |
Display.getAllContacts(boolean withNumbers,
boolean includesFullName,
boolean includesPicture,
boolean includesNumbers,
boolean includesEmail,
boolean includeAddress)
Notice: this method might be very slow and should be invoked on a separate thread!
It might have platform specific optimizations over getAllContacts followed by looping
over individual contacts but that isn't guaranteed.
|
Contact |
Display.getContactById(String id)
Get a Contact according to it's contact id.
|
Contact |
Display.getContactById(String id,
boolean includesFullName,
boolean includesPicture,
boolean includesNumbers,
boolean includesEmail,
boolean includeAddress)
This method returns a Contact by the contact id and fills it's data
according to the given flags.
The sample below demonstrates listing all the contacts within the device with their photos |
| Modifier and Type | Method and Description |
|---|---|
String[] |
Display.getLinkedContactIds(Contact c)
Gets IDs of all contacts that are linked to a given contact.
|
Copyright © 2021. All rights reserved.