Sms
class Sms : BaseColumns, Telephony.TextBasedSmsColumns
kotlin.Any | |
↳ | android.provider.Telephony.Sms |
Contains all text-based SMS messages.
Summary
Nested classes | |
---|---|
Contains a view of SMS conversations (also referred to as threads). |
|
Contains all draft text-based SMS messages in the SMS app. |
|
Contains all text-based SMS messages in the SMS app inbox. |
|
Contains constants for SMS related Intents that are broadcast. |
|
Contains all pending outgoing text-based SMS messages. |
|
Contains all sent text-based SMS messages in the SMS app. |
Constants | |
---|---|
static String |
The default sort order for this table. |
Inherited constants | |
---|---|
Public methods | |
---|---|
static String! |
getDefaultSmsPackage(context: Context!) Used to determine the currently configured default SMS package. |
Properties | |
---|---|
static Uri! |
The |
Constants
DEFAULT_SORT_ORDER
static val DEFAULT_SORT_ORDER: String
The default sort order for this table.
Value: "date DESC"
Public methods
getDefaultSmsPackage
static fun getDefaultSmsPackage(context: Context!): String!
Used to determine the currently configured default SMS package.
As of Android 11 apps will need specific permission to query other packages. To use this method an app must include in their AndroidManifest:
<code><queries> <intent> <action android:name="android.provider.Telephony.SMS_DELIVER"/> </intent> </queries> </code>
android.provider.Telephony.Sms.Intents#SMS_DELIVER_ACTION
intent.
Parameters | |
---|---|
context |
Context!: context of the requesting application |
Return | |
---|---|
String! |
package name for the default SMS package or null |
Properties
CONTENT_URI
static val CONTENT_URI: Uri!
The content://
style URL for this table.