getContactFromMobilePhoneNumber

abstract fun getContactFromMobilePhoneNumber(number: String?): IRainbowContact?

Retrieves a contact based on their mobile phone number.

This method searches for a contact with the specified mobile phone number. The contact can be retrieved from the cache if it's present in the user's roster, designated as a personal contact, or fetched from the server using the fetchContactDataById method.

Return

The IRainbowContact object corresponding to the specified mobile phone number, or null if the contact is not found.

Parameters

number

The mobile phone number of the contact to retrieve.