@nativescript/contacts
Version:
Easy access to iOS and Android contact directory. Pick a contact, update date, or add a new one!
43 lines (42 loc) • 1.04 kB
TypeScript
export interface IContactCollection {
id?: any;
label?: string;
value?: string;
location?: any;
}
export declare class ContactCommon {
id: string;
name?: {
given?: string;
middle?: string;
family?: string;
prefix?: string;
suffix?: string;
displayname?: string;
phonetic?: {
given?: string;
middle?: string;
family?: string;
};
};
organization?: {
name?: string;
jobTitle?: string;
department?: string;
symbol?: string;
phonetic?: string;
location?: string;
type?: string;
};
nickname?: string;
notes?: string;
photo?: any;
urls?: Array<IContactCollection>;
phoneNumbers?: Array<IContactCollection>;
emailAddresses?: Array<IContactCollection>;
postalAddresses?: Array<IContactCollection>;
constructor();
initializeFromNative(nativeData: any, contactFields: any): void;
save(): void;
delete(): void;
}