Contacts

class Contacts

Methods for contacts.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Methods for number rewriting.
Link copied to clipboard
class Smart
Methods for smart contacts.

Functions

Link copied to clipboard
Ensure contacts information is up-to-date with the given contact source.
Link copied to clipboard
Get contact from the giver contact ID
Get contact from the given source,
Get contact from the given contact source
Link copied to clipboard
Get the avatar of a contact in the given source.
Link copied to clipboard
Get the thumbnail of avatar of a contact in the given source.
Link copied to clipboard
Return how many bits are used to identify contact blocks in the given source When n bits are used, the internal storage has contacts divided into 2ⁿ blocks.
Link copied to clipboard
Whether the contacts are being loaded.
Link copied to clipboard
Get number of contacts in a given contact source.
Get number of contacts for a query in a given contact source.
Link copied to clipboard
Get sections for full alphabetical sequence of contacts from the given source.
Get sections for full alphabetical sequence of contacts from the given source
Link copied to clipboard
Get all the sources which are configured and valid.
Link copied to clipboard
Get checksum of all contacts from the given source in storage.
Link copied to clipboard
Iterate contacts from the given source in alphabetical order.
Iterate a set of contacts from the given source in alphabetical order.
Link copied to clipboard
open fun iterateUnordered(@NonNull source: ContactSourceType, @IntRange(from = 0) from: Int, @IntRange(from = "-1") limit: Int): ContactIterator
Iterate contacts from the given source without any specific order.
Link copied to clipboard
open fun search(@NonNull query: IndexQuery, @IntRange(from = 0) limit: Int, resolveSpans: Boolean): Array<IndexMatch>
Perform a full-text search in contact storage.
open fun search(@NonNull query: IndexQuery, @IntRange(from = 0) limit: Int, resolveSpans: Boolean, @Nullable searchText: String): Array<IndexMatch>
Link copied to clipboard
Set auxiliary data to a contact in the given source The stored JSON dictionary is accessible under key AUXILIARY.