Documentation
¶
Overview ¶
Package contacts reads and changes the phone's contacts.
nimbus native plugin add contacts c, err := contacts.Pick(ctx) // no permission: they choose one saved, err := contacts.Add(ctx, cafe) // no permission: they see it first ok, err := contacts.Request(ctx) all, err := contacts.List(ctx) id, err := contacts.Create(ctx, cafe)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add opens the system's new contact screen, filled in. It needs no permission, because they see it and save it themselves. It's true if they saved it; Android can't always tell, so there it's true once the screen closes.
func Create ¶
Create saves a new contact with no screen. Call Request first, and tell them: it's their address book.
Types ¶
type Contact ¶
type Contact struct {
ID string `json:"id"` // for Update and Delete; set by List
Name string `json:"name"` // their full name
Phones []string `json:"phones"` // their phone numbers
Emails []string `json:"emails"` // their email addresses
}
Contact is a person.
Click to show internal directories.
Click to hide internal directories.