SmsManager.CreateAppSpecificSmsTokenWithPackageInfo(String, PendingIntent) Method

Definition

Create a single use app specific incoming SMS request for the calling package.

[Android.Runtime.Register("createAppSpecificSmsTokenWithPackageInfo", "(Ljava/lang/String;Landroid/app/PendingIntent;)Ljava/lang/String;", "", ApiSince=29)]
public string? CreateAppSpecificSmsTokenWithPackageInfo (string? prefixes, Android.App.PendingIntent intent);
[<Android.Runtime.Register("createAppSpecificSmsTokenWithPackageInfo", "(Ljava/lang/String;Landroid/app/PendingIntent;)Ljava/lang/String;", "", ApiSince=29)>]
member this.CreateAppSpecificSmsTokenWithPackageInfo : string * Android.App.PendingIntent -> string

Parameters

prefixes
String

this is a list of prefixes string separated by REGEX_PREFIX_DELIMITER. The matching SMS message should have at least one of the prefixes in the beginning of the message.

intent
PendingIntent

this intent is sent when the matching SMS message is received.

Returns

String

Token to include in an SMS message.

Attributes

Remarks

Java documentation for android.telephony.SmsManager.createAppSpecificSmsTokenWithPackageInfo(java.lang.String, android.app.PendingIntent).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to