NativeApi class
Native system UI for picking, viewing, editing, and creating contacts (Android & iOS only).
Most calls avoid the contacts permission by handing off to the system UI. See each method for exceptions.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showCreator(
{Contact? contact}) → Future< String?> -
Shows the native contact creator, optionally pre-filled with
contact. Returns the new contact's ID, or null if the user cancelled. -
showEditor(
String contactId) → Future< String?> -
Shows the native contact editor for
contactId. Returns the saved contact's ID, or null if the user cancelled. -
showPicker(
{Set< ContactProperty> ? properties}) → Future<Contact?> - Shows the native contact picker dialog. Returns the picked contact, or null if the user cancelled.
-
showViewer(
String contactId) → Future< void> -
Shows the native contact viewer for
contactId. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited