Skip to content

Commit b61b339

Browse files
duncan-cdanielsogl
authored andcommitted
fix(contacts plugin): add the rawId parameter (#2799)
* fix(contacts plugin): add the rawId parameter This adds the rawId parameter to the contact class which allows the rawId value to be passed to Android which is required for saving contacts. * Update index.ts
1 parent 39b4b85 commit b61b339

File tree

1 file changed

+4
-0
lines changed
  • src/@ionic-native/plugins/contacts

1 file changed

+4
-0
lines changed

src/@ionic-native/plugins/contacts/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ export interface IContactProperties {
4545
/** A globally unique identifier. */
4646
id?: string;
4747

48+
/** A globally unique identifier on Android. */
49+
rawId?: string;
50+
4851
/** The name of this Contact, suitable for display to end users. */
4952
displayName?: string;
5053

@@ -91,6 +94,7 @@ export interface IContactProperties {
9194
export class Contact implements IContactProperties {
9295
private _objectInstance: any;
9396
@InstanceProperty id: string;
97+
@InstanceProperty rawId: string;
9498
@InstanceProperty displayName: string;
9599
@InstanceProperty name: IContactName;
96100
@InstanceProperty nickname: string;

0 commit comments

Comments
 (0)