toPhoneUri

fun String?.toPhoneUri(): PhoneUri

Returns a Uri with the PhoneAccount.SCHEME_TEL scheme from a phone number. If this is null, return 'tel:'

The string should not start with a scheme. If it does, use String.toUri instead for the conversion.

Throws

if the string already contains a scheme.