contactsui

package
v0.5.0-preview....-32e7360 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Display information about users’ contacts in a graphical interface.

Apple Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContactPickerClass = _ContactPickerClass{objc.GetClass("CNContactPicker")}

The class instance for the ContactPicker class.

View Source
var ContactViewControllerClass = _ContactViewControllerClass{objc.GetClass("CNContactViewController")}

The class instance for the ContactViewController class.

Functions

func ContactViewController_DescriptorForRequiredKeys

func ContactViewController_DescriptorForRequiredKeys() objc.Object

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

type ContactPicker struct {
	objc.Object
}

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) Close

func (c_ ContactPicker) Close()

Closes the popover. Full Topic

func (ContactPicker) Delegate

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

type ContactPickerDelegateObject struct {
	objc.Object
}

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 (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL