ContactsBridgePlatform class abstract
The interface that implementations of contacts_bridge must implement.
- Inheritance
-
- Object
- PlatformInterface
- ContactsBridgePlatform
- Implementers
Constructors
- ContactsBridgePlatform.new()
- Constructs a ContactsBridgePlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createContact(
Contact contact) → Future< Contact> - Creates a new contact.
-
deleteContact(
String id) → Future< void> - Deletes a contact by ID.
-
getAllContacts(
{bool withProperties = false, bool withThumbnail = false, bool withPhoto = false, bool sorted = true}) → Future< List< Contact> > - Gets all contacts from the device.
-
getContact(
String id, {bool withProperties = true, bool withThumbnail = false, bool withPhoto = false}) → Future< Contact?> - Gets a specific contact by ID.
-
getPermissionStatus(
) → Future< PermissionStatus> - Gets the current permission status for contacts access.
-
getPlatformVersion(
) → Future< String?> - Gets the platform version.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observeContacts(
) → Stream< List< Contact> > - Observes changes to the contacts database.
-
requestPermission(
{bool readOnly = false}) → Future< PermissionStatus> - Requests permission to access contacts.
-
searchContacts(
String query, {bool withProperties = false, bool sorted = true}) → Future< List< Contact> > - Searches for contacts matching the given query.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateContact(
Contact contact) → Future< Contact> - Updates an existing contact.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ ContactsBridgePlatform
-
The default instance of ContactsBridgePlatform to use.
getter/setter pair