Documentation ¶
Overview ¶
Display information about users’ contacts in a graphical interface.
Index ¶
- Variables
- func ContactViewController_DescriptorForRequiredKeys() objc.Object
- type ContactPicker
- func (c_ ContactPicker) Close()
- func (c_ ContactPicker) Delegate() ContactPickerDelegateObject
- func (c_ ContactPicker) DisplayedKeys() []string
- func (c_ ContactPicker) Init() ContactPicker
- func (c_ ContactPicker) SetDelegate(value PContactPickerDelegate)
- func (c_ ContactPicker) SetDelegateObject(valueObject objc.IObject)
- func (c_ ContactPicker) SetDisplayedKeys(value []string)
- func (c_ ContactPicker) ShowRelativeToRectOfViewPreferredEdge(positioningRect foundation.Rect, positioningView appkit.IView, ...)
- type ContactPickerDelegate
- func (di *ContactPickerDelegate) ContactPickerDidClose(picker ContactPicker)
- func (di *ContactPickerDelegate) ContactPickerDidSelectContact(picker ContactPicker, contact contacts.Contact)
- func (di *ContactPickerDelegate) ContactPickerDidSelectContactProperty(picker ContactPicker, contactProperty contacts.ContactProperty)
- func (di *ContactPickerDelegate) ContactPickerWillClose(picker ContactPicker)
- func (di *ContactPickerDelegate) HasContactPickerDidClose() bool
- func (di *ContactPickerDelegate) HasContactPickerDidSelectContact() bool
- func (di *ContactPickerDelegate) HasContactPickerDidSelectContactProperty() bool
- func (di *ContactPickerDelegate) HasContactPickerWillClose() bool
- func (di *ContactPickerDelegate) SetContactPickerDidClose(f func(picker ContactPicker))
- func (di *ContactPickerDelegate) SetContactPickerDidSelectContact(f func(picker ContactPicker, contact contacts.Contact))
- func (di *ContactPickerDelegate) SetContactPickerDidSelectContactProperty(f func(picker ContactPicker, contactProperty contacts.ContactProperty))
- func (di *ContactPickerDelegate) SetContactPickerWillClose(f func(picker ContactPicker))
- type ContactPickerDelegateObject
- func (c_ ContactPickerDelegateObject) ContactPickerDidClose(picker ContactPicker)
- func (c_ ContactPickerDelegateObject) ContactPickerDidSelectContact(picker ContactPicker, contact contacts.Contact)
- func (c_ ContactPickerDelegateObject) ContactPickerDidSelectContactProperty(picker ContactPicker, contactProperty contacts.ContactProperty)
- func (c_ ContactPickerDelegateObject) ContactPickerWillClose(picker ContactPicker)
- func (c_ ContactPickerDelegateObject) HasContactPickerDidClose() bool
- func (c_ ContactPickerDelegateObject) HasContactPickerDidSelectContact() bool
- func (c_ ContactPickerDelegateObject) HasContactPickerDidSelectContactProperty() bool
- func (c_ ContactPickerDelegateObject) HasContactPickerWillClose() bool
- type ContactViewController
- func (c_ ContactViewController) Contact() contacts.Contact
- func (c_ ContactViewController) Init() ContactViewController
- func (c_ ContactViewController) InitWithNibNameBundle(nibNameOrNil appkit.NibName, nibBundleOrNil foundation.IBundle) ContactViewController
- func (c_ ContactViewController) SetContact(value contacts.IContact)
- type IContactPicker
- type IContactViewController
- type PContactPickerDelegate
Constants ¶
This section is empty.
Variables ¶
var ContactPickerClass = _ContactPickerClass{objc.GetClass("CNContactPicker")}
The class instance for the ContactPicker class.
var ContactViewControllerClass = _ContactViewControllerClass{objc.GetClass("CNContactViewController")}
The class instance for the ContactViewController class.
Functions ¶
func ContactViewController_DescriptorForRequiredKeys ¶
Returns the descriptor for all the keys that must be fetched on the contact before setting it on the view controller. Full Topic
Types ¶
type ContactPicker ¶
A popover-based interface for selecting a contact. Full Topic
func ContactPickerFrom ¶
func ContactPickerFrom(ptr unsafe.Pointer) ContactPicker
func NewContactPicker ¶
func NewContactPicker() ContactPicker
func (ContactPicker) Delegate ¶
func (c_ ContactPicker) Delegate() ContactPickerDelegateObject
The picker delegate to be notified when the user chooses a contact. Full Topic
func (ContactPicker) DisplayedKeys ¶
func (c_ ContactPicker) DisplayedKeys() []string
The keys to be displayed when a contact is expanded. Full Topic
func (ContactPicker) Init ¶
func (c_ ContactPicker) Init() ContactPicker
func (ContactPicker) SetDelegate ¶
func (c_ ContactPicker) SetDelegate(value PContactPickerDelegate)
The picker delegate to be notified when the user chooses a contact. Full Topic
func (ContactPicker) SetDelegateObject ¶
func (c_ ContactPicker) SetDelegateObject(valueObject objc.IObject)
The picker delegate to be notified when the user chooses a contact. Full Topic
func (ContactPicker) SetDisplayedKeys ¶
func (c_ ContactPicker) SetDisplayedKeys(value []string)
The keys to be displayed when a contact is expanded. Full Topic
func (ContactPicker) ShowRelativeToRectOfViewPreferredEdge ¶
func (c_ ContactPicker) ShowRelativeToRectOfViewPreferredEdge(positioningRect foundation.Rect, positioningView appkit.IView, preferredEdge foundation.RectEdge)
Shows the picker popover anchored to the specified view. Full Topic
type ContactPickerDelegate ¶
type ContactPickerDelegate struct {
// contains filtered or unexported fields
}
A delegate implementation builder for the PContactPickerDelegate protocol.
func (*ContactPickerDelegate) ContactPickerDidClose ¶
func (di *ContactPickerDelegate) ContactPickerDidClose(picker ContactPicker)
In macOS, called when the contact picker’s popover has closed. Full Topic
func (*ContactPickerDelegate) ContactPickerDidSelectContact ¶
func (di *ContactPickerDelegate) ContactPickerDidSelectContact(picker ContactPicker, contact contacts.Contact)
Called after a contact has been selected by the user. Full Topic
func (*ContactPickerDelegate) ContactPickerDidSelectContactProperty ¶
func (di *ContactPickerDelegate) ContactPickerDidSelectContactProperty(picker ContactPicker, contactProperty contacts.ContactProperty)
Called when a property of the contact has been selected by the user. Full Topic
func (*ContactPickerDelegate) ContactPickerWillClose ¶
func (di *ContactPickerDelegate) ContactPickerWillClose(picker ContactPicker)
In macOS, called when the contact picker’s popover is about to close. Full Topic
func (*ContactPickerDelegate) HasContactPickerDidClose ¶
func (di *ContactPickerDelegate) HasContactPickerDidClose() bool
func (*ContactPickerDelegate) HasContactPickerDidSelectContact ¶
func (di *ContactPickerDelegate) HasContactPickerDidSelectContact() bool
func (*ContactPickerDelegate) HasContactPickerDidSelectContactProperty ¶
func (di *ContactPickerDelegate) HasContactPickerDidSelectContactProperty() bool
func (*ContactPickerDelegate) HasContactPickerWillClose ¶
func (di *ContactPickerDelegate) HasContactPickerWillClose() bool
func (*ContactPickerDelegate) SetContactPickerDidClose ¶
func (di *ContactPickerDelegate) SetContactPickerDidClose(f func(picker ContactPicker))
In macOS, called when the contact picker’s popover has closed. Full Topic
func (*ContactPickerDelegate) SetContactPickerDidSelectContact ¶
func (di *ContactPickerDelegate) SetContactPickerDidSelectContact(f func(picker ContactPicker, contact contacts.Contact))
Called after a contact has been selected by the user. Full Topic
func (*ContactPickerDelegate) SetContactPickerDidSelectContactProperty ¶
func (di *ContactPickerDelegate) SetContactPickerDidSelectContactProperty(f func(picker ContactPicker, contactProperty contacts.ContactProperty))
Called when a property of the contact has been selected by the user. Full Topic
func (*ContactPickerDelegate) SetContactPickerWillClose ¶
func (di *ContactPickerDelegate) SetContactPickerWillClose(f func(picker ContactPicker))
In macOS, called when the contact picker’s popover is about to close. Full Topic
type ContactPickerDelegateObject ¶
A concrete type for the PContactPickerDelegate protocol.
func (ContactPickerDelegateObject) ContactPickerDidClose ¶
func (c_ ContactPickerDelegateObject) ContactPickerDidClose(picker ContactPicker)
In macOS, called when the contact picker’s popover has closed. Full Topic
func (ContactPickerDelegateObject) ContactPickerDidSelectContact ¶
func (c_ ContactPickerDelegateObject) ContactPickerDidSelectContact(picker ContactPicker, contact contacts.Contact)
Called after a contact has been selected by the user. Full Topic
func (ContactPickerDelegateObject) ContactPickerDidSelectContactProperty ¶
func (c_ ContactPickerDelegateObject) ContactPickerDidSelectContactProperty(picker ContactPicker, contactProperty contacts.ContactProperty)
Called when a property of the contact has been selected by the user. Full Topic
func (ContactPickerDelegateObject) ContactPickerWillClose ¶
func (c_ ContactPickerDelegateObject) ContactPickerWillClose(picker ContactPicker)
In macOS, called when the contact picker’s popover is about to close. Full Topic
func (ContactPickerDelegateObject) HasContactPickerDidClose ¶
func (c_ ContactPickerDelegateObject) HasContactPickerDidClose() bool
func (ContactPickerDelegateObject) HasContactPickerDidSelectContact ¶
func (c_ ContactPickerDelegateObject) HasContactPickerDidSelectContact() bool
func (ContactPickerDelegateObject) HasContactPickerDidSelectContactProperty ¶
func (c_ ContactPickerDelegateObject) HasContactPickerDidSelectContactProperty() bool
func (ContactPickerDelegateObject) HasContactPickerWillClose ¶
func (c_ ContactPickerDelegateObject) HasContactPickerWillClose() bool
type ContactViewController ¶
type ContactViewController struct {
appkit.ViewController
}
A view controller that displays a new, unknown, or existing contact. Full Topic
func ContactViewControllerFrom ¶
func ContactViewControllerFrom(ptr unsafe.Pointer) ContactViewController
func NewContactViewController ¶
func NewContactViewController() ContactViewController
func NewContactViewControllerWithNibNameBundle ¶
func NewContactViewControllerWithNibNameBundle(nibNameOrNil appkit.NibName, nibBundleOrNil foundation.IBundle) ContactViewController
Returns a view controller object initialized to the nib file in the specified bundle. Full Topic
func (ContactViewController) Contact ¶
func (c_ ContactViewController) Contact() contacts.Contact
The contact being displayed. Full Topic
func (ContactViewController) Init ¶
func (c_ ContactViewController) Init() ContactViewController
func (ContactViewController) InitWithNibNameBundle ¶
func (c_ ContactViewController) InitWithNibNameBundle(nibNameOrNil appkit.NibName, nibBundleOrNil foundation.IBundle) ContactViewController
func (ContactViewController) SetContact ¶
func (c_ ContactViewController) SetContact(value contacts.IContact)
The contact being displayed. Full Topic
type IContactPicker ¶
type IContactPicker interface { objc.IObject Close() ShowRelativeToRectOfViewPreferredEdge(positioningRect foundation.Rect, positioningView appkit.IView, preferredEdge foundation.RectEdge) DisplayedKeys() []string SetDisplayedKeys(value []string) Delegate() ContactPickerDelegateObject SetDelegate(value PContactPickerDelegate) SetDelegateObject(valueObject objc.IObject) }
An interface definition for the ContactPicker class.
type IContactViewController ¶
type IContactViewController interface { appkit.IViewController Contact() contacts.Contact SetContact(value contacts.IContact) }
An interface definition for the ContactViewController class.
type PContactPickerDelegate ¶
type PContactPickerDelegate interface { // optional ContactPickerWillClose(picker ContactPicker) HasContactPickerWillClose() bool // optional ContactPickerDidSelectContact(picker ContactPicker, contact contacts.Contact) HasContactPickerDidSelectContact() bool // optional ContactPickerDidClose(picker ContactPicker) HasContactPickerDidClose() bool // optional ContactPickerDidSelectContactProperty(picker ContactPicker, contactProperty contacts.ContactProperty) HasContactPickerDidSelectContactProperty() bool }
The methods that you implement to respond to contact-picker user events. Full Topic