Documentation
¶
Index ¶
- func CheckPermissions() error
- func NewChatDatabase(bridge imessage.Bridge) (imessage.API, error)
- func NewChatInfoDatabase(log log.Logger) (imessage.ChatInfoAPI, error)
- type Account
- type Attribute
- type AttributeKey
- type AttributedString
- type ContactStore
- func (cs *ContactStore) GetContactInfo(identifier string) (*imessage.Contact, error)
- func (cs *ContactStore) GetContactList() ([]*imessage.Contact, error)
- func (cs ContactStore) RefreshContactList() error
- func (cs *ContactStore) RequestContactAccess() error
- func (cs ContactStore) SearchContactList(searchTerms string) ([]*imessage.Contact, error)
- type Track1728Payload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPermissions ¶
func CheckPermissions() error
func NewChatInfoDatabase ¶
func NewChatInfoDatabase(log log.Logger) (imessage.ChatInfoAPI, error)
Types ¶
type Attribute ¶
type Attribute struct { Location int `json:"location"` Length int `json:"length"` Values map[AttributeKey]any `json:"values"` }
type AttributeKey ¶
type AttributeKey string
const ( AttrBaseWritingDirection AttributeKey = "__kIMBaseWritingDirectionAttributeName" AttrFileTransferGUID AttributeKey = "__kIMFileTransferGUIDAttributeName" AttrMessagePartIndex AttributeKey = "__kIMMessagePartAttributeName" AttrURLPreviewData AttributeKey = "__kIMDataDetectedAttributeName" AttrURL AttributeKey = "__kIMLinkAttributeName" )
type AttributedString ¶
type AttributedString struct { Content string `json:"content"` Attributes []Attribute `json:"attributes"` }
func (*AttributedString) SortAttachments ¶
func (as *AttributedString) SortAttachments(log maulogger.Logger, attachments []*imessage.Attachment) []*imessage.Attachment
type ContactStore ¶
type ContactStore struct { HasContactAccess bool // contains filtered or unexported fields }
func NewContactStore ¶
func NewContactStore() *ContactStore
func (*ContactStore) GetContactInfo ¶
func (cs *ContactStore) GetContactInfo(identifier string) (*imessage.Contact, error)
func (*ContactStore) GetContactList ¶
func (cs *ContactStore) GetContactList() ([]*imessage.Contact, error)
func (ContactStore) RefreshContactList ¶
func (cs ContactStore) RefreshContactList() error
func (*ContactStore) RequestContactAccess ¶
func (cs *ContactStore) RequestContactAccess() error
func (ContactStore) SearchContactList ¶
func (cs ContactStore) SearchContactList(searchTerms string) ([]*imessage.Contact, error)
type Track1728Payload ¶
Click to show internal directories.
Click to hide internal directories.