IntentUtils

class IntentUtils

Functions

buildImageCaptureIntent
Link copied to clipboard
open fun buildImageCaptureIntent(uri: Uri): Intent
buildImageCropIntent
Link copied to clipboard
open fun buildImageCropIntent(uriFrom: Uri, uriTo: Uri, outputX: Int, outputY: Int, returnData: Boolean): Intent
open fun buildImageCropIntent(uriFrom: Uri, uriTo: Uri, aspectX: Int, aspectY: Int, outputX: Int, outputY: Int, returnData: Boolean): Intent
buildImageGetIntent
Link copied to clipboard
open fun buildImageGetIntent(saveTo: Uri, outputX: Int, outputY: Int, returnData: Boolean): Intent
open fun buildImageGetIntent(saveTo: Uri, aspectX: Int, aspectY: Int, outputX: Int, outputY: Int, returnData: Boolean): Intent
getCallIntent
Link copied to clipboard
open fun getCallIntent(phoneNumber: String): Intent
Return the intent of call.
open fun getCallIntent(phoneNumber: String, isNewTask: Boolean): Intent
Return the intent of call.
getCaptureIntent
Link copied to clipboard
open fun getCaptureIntent(outUri: Uri): Intent
Return the intent of capture.
open fun getCaptureIntent(outUri: Uri, isNewTask: Boolean): Intent
Return the intent of capture.
getComponentIntent
Link copied to clipboard
open fun getComponentIntent(packageName: String, className: String): Intent
Return the intent of component.
open fun getComponentIntent(packageName: String, className: String, bundle: Bundle): Intent
Return the intent of component.
open fun getComponentIntent(packageName: String, className: String, isNewTask: Boolean): Intent
Return the intent of component.
open fun getComponentIntent(packageName: String, className: String, bundle: Bundle, isNewTask: Boolean): Intent
Return the intent of component.
getDialIntent
Link copied to clipboard
open fun getDialIntent(phoneNumber: String): Intent
Return the intent of dial.
open fun getDialIntent(phoneNumber: String, isNewTask: Boolean): Intent
Return the intent of dial.
getInstallAppIntent
Link copied to clipboard
open fun getInstallAppIntent(file: File, authority: String): Intent
Return the intent of install app.
open fun getInstallAppIntent(filePath: String, authority: String): Intent
Return the intent of install app.
open fun getInstallAppIntent(file: File, authority: String, isNewTask: Boolean): Intent
Return the intent of install app.
getLaunchAppDetailsSettingsIntent
Link copied to clipboard
open fun getLaunchAppDetailsSettingsIntent(packageName: String): Intent
Return the intent of launch app details settings.
open fun getLaunchAppDetailsSettingsIntent(packageName: String, isNewTask: Boolean): Intent
Return the intent of launch app details settings.
getLaunchAppIntent
Link copied to clipboard
open fun getLaunchAppIntent(packageName: String): Intent
Return the intent of launch app.
open fun getLaunchAppIntent(packageName: String, isNewTask: Boolean): Intent
Return the intent of launch app.
getPickIntentWithDocuments
Link copied to clipboard
open fun getPickIntentWithDocuments(): Intent
获取从文件中选择照片的 Intent
getPickIntentWithGallery
Link copied to clipboard
open fun getPickIntentWithGallery(): Intent
获取选择照片的 Intent
getSendSmsIntent
Link copied to clipboard
open fun getSendSmsIntent(phoneNumber: String, content: String): Intent
Return the intent of send SMS.
open fun getSendSmsIntent(phoneNumber: String, content: String, isNewTask: Boolean): Intent
Return the intent of send SMS.
getShareImageIntent
Link copied to clipboard
open fun getShareImageIntent(content: String, uri: Uri): Intent
Return the intent of share image.
open fun getShareImageIntent(content: String, image: File): Intent
Return the intent of share image.
open fun getShareImageIntent(content: String, imagePath: String): Intent
Return the intent of share image.
open fun getShareImageIntent(content: String, uri: Uri, isNewTask: Boolean): Intent
Return the intent of share image.
open fun getShareImageIntent(content: String, image: File, isNewTask: Boolean): Intent
Return the intent of share image.
open fun getShareImageIntent(content: String, imagePath: String, isNewTask: Boolean): Intent
Return the intent of share image.
getShareTextIntent
Link copied to clipboard
open fun getShareTextIntent(content: String): Intent
Return the intent of share text.
open fun getShareTextIntent(content: String, isNewTask: Boolean): Intent
Return the intent of share text.
getShutdownIntent
Link copied to clipboard
open fun getShutdownIntent(): Intent
Return the intent of shutdown.
open fun getShutdownIntent(isNewTask: Boolean): Intent
Return the intent of shutdown.
getUninstallAppIntent
Link copied to clipboard
open fun getUninstallAppIntent(packageName: String): Intent
Return the intent of uninstall app.
open fun getUninstallAppIntent(packageName: String, isNewTask: Boolean): Intent
Return the intent of uninstall app.
launchMarketDetail
Link copied to clipboard
open fun launchMarketDetail()
打开应用市场当前应用详情页面
launchMarketSearchResult
Link copied to clipboard
open fun launchMarketSearchResult()
打开应用市场当前应用的搜索结果页面