IntentExtras

interface IntentExtras

Intent 额外数据键接口,定义了 Android Intent 中常用的 EXTRA 常量。 这些常量用作 Intent bundle 中数据的 Key,用于在组件之间传递标准化的数据。

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun getAllowMultiple(): String

用于允许用户选择多个项目。通常与 IntentActions.getGetContent 一起使用。 数据类型: boolean 对应: android.content.Intent.EXTRA_ALLOW_MULTIPLE

Link copied to clipboard
abstract fun getBcc(): String

用于提供密送 (BCC) 电子邮件地址列表。 数据类型: String[] 对应: android.content.Intent.EXTRA_BCC

Link copied to clipboard
abstract fun getCc(): String

用于提供抄送 (CC) 电子邮件地址列表。 数据类型: String[] 对应: android.content.Intent.EXTRA_CC

Link copied to clipboard
abstract fun getDontKillApp(): String

作为布尔值使用,指示被启动的应用程序不应被系统杀死以回收内存。 通常用于安装程序或关键任务。 数据类型: boolean 对应: android.content.Intent.EXTRA_DONT_KILL_APP

Link copied to clipboard
abstract fun getEmail(): String

用于提供电子邮件地址列表。通常与 IntentActions.getSendIntentActions.getSendTo 一起使用。 数据类型: String[] 对应: android.content.Intent.EXTRA_EMAIL

Link copied to clipboard
abstract fun getHtmlText(): String

用于提供 HTML 格式的文本内容。 数据类型: String 对应: android.content.Intent.EXTRA_HTML_TEXT

Link copied to clipboard
abstract fun getIntent(): String

用于携带另一个 Intent。例如在创建桌面快捷方式或某些设置界面中。 数据类型: Intent / Parcelable 对应: android.content.Intent.EXTRA_INTENT

Link copied to clipboard
abstract fun getLocalOnly(): String

用于指示应该仅显示本地数据(即不在云端的数据)。 通常与 IntentActions.getGetContent 一起使用。 数据类型: boolean 对应: android.content.Intent.EXTRA_LOCAL_ONLY

Link copied to clipboard
abstract fun getPackageName(): String

用于传递包名。 数据类型: String 对应: android.content.Intent.EXTRA_PACKAGE_NAME

Link copied to clipboard
abstract fun getPhoneNumber(): String

用于提供电话号码。通常用于 IntentActions.getCall 等操作。 数据类型: String 对应: android.content.Intent.EXTRA_PHONE_NUMBER

Link copied to clipboard
abstract fun getReplacing(): String

用于传递替换后的新 Intent。 对应: android.content.Intent.EXTRA_REPLACING

Link copied to clipboard
abstract fun getResultReceiver(): String

描述返回结果的接收者。 数据类型: ResultReceiver 对应: android.content.Intent.EXTRA_RESULT_RECEIVER

Link copied to clipboard

用于传递快捷方式图标资源。 数据类型: Intent.ShortcutIconResource 对应: android.content.Intent.EXTRA_SHORTCUT_ICON_RESOURCE

Link copied to clipboard
abstract fun getShortcutName(): String

用于传递快捷方式的名称。 数据类型: String 对应: android.content.Intent.EXTRA_SHORTCUT_NAME

Link copied to clipboard
abstract fun getStream(): String

用于提供数据的流(Stream),通常是 URI。用于发送文件、图片等。 数据类型: Uri (在 ACTION_SEND 中) 或 ArrayList (在 ACTION_SEND_MULTIPLE 中) 对应: android.content.Intent.EXTRA_STREAM

Link copied to clipboard
abstract fun getSubject(): String

用于提供消息的主题(Subject)。 数据类型: String 对应: android.content.Intent.EXTRA_SUBJECT

Link copied to clipboard
abstract fun getText(): String

用于提供一段文本内容。通常与 IntentActions.getSend 一起使用。 数据类型: CharSequence / String 对应: android.content.Intent.EXTRA_TEXT

Link copied to clipboard
abstract fun getTitle(): String

用于提供标题。 数据类型: CharSequence / String 对应: android.content.Intent.EXTRA_TITLE

Link copied to clipboard
abstract fun getUid(): String

用于提供与事件相关的 UID。 数据类型: int 对应: android.content.Intent.EXTRA_UID