### Share foreground image and background colors to WhatsApp Status Source: https://faq.whatsapp.com/669870872481343/?helpref=hc_fnav&cms_platform=android Creates an Intent to share a foreground image and optional background colors to WhatsApp Status. If background colors are not specified, the background defaults to the most dominant color. The URI must be granted FLAG_GRANT_READ_URI_PERMISSION. The intent is started with startActivityForResult. ```Kotlin val shareIntent: Intent = Intent(Intent.ACTION_VIEW).apply { data = Uri.parse("https://wa.me/status") putExtra("source_app_package_name", app_package_name) setPackage("com.whatsapp") //Decides on which media composition flow putExtra("share_type", "SHARE_TO_STATUS") //Foreground media //Uri must be granted FLAG_GRANT_READ_URI_PERMISSION putExtra("foreground_media", Uri.parse("uriToImage")) context.grantUriPermission(packageName, Uri.parse("uriToImage"), Intent.FLAG_GRANT_READ_URI_PERMISSION) //Background color putExtra("background_color", "hex_color") //OR putExtra("color_gradient_top", "hex_color") putExtra("color_gradient_bottom", "hex_color") flags = Intent.FLAG_GRANT_READ_URI_PERMISSION } // Verify that the activity resolves the intent and start it startActivityForResult(shareIntent, 0) ```