fun handleOnBackStarted(backEvent: BackEventCompat) { } override fun handleOnBackProgressed(backEvent: BackEventCompat) { } override fun handleOnBackCancelled() { } } Predictive Back Progress
BRਸ ١۾ೡ ٸ, RECEIVER_EXPORTED ژח RECEIVER_NOT_EXPORTED ೞաܳ ೧ঠ ೠ. غ ঋਵݶ, SecurityException ߊࢤೠ. // I want to receive broadcasts from other apps! context.registerReceiver(broadcastReceiver, intentFilter, RECEIVER_EXPORTED) // I DON'T want to receive broadcasts from other apps, even system apps! context.registerReceiver(broadcastReceiver, intentFilter, RECEIVER_NOT_EXPORTED)
(Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { localeManager?.applicationLocales = LocaleList(Locale.forLanguageTag("en-US")) val currentAppLocale: LocaleList = localeManager.getApplicationLocales() } // Using AppCompat API val appLocale: LocaleListCompat = LocaleListCompat.forLanguageTags("en-US") // Call this on the main thread as it may require Activity.restart() AppCompatDelegate.setApplicationLocales(appLocale) val currentAppLocale: LocaleListCompat = AppCompatDelegate.getApplicationLocales() জ ղ ࢸীࢲ য ࢶఖ ઁҕೞӝ
(Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) { grammaticalInflectionManager?.setRequestedApplicationGrammaticalGender( Configuration.GRAMMATICAL_GENDER_FEMININE // or Configuration.GRAMMATICAL_GENDER_MASCULINE // or Configuration.GRAMMATICAL_GENDER_NEUTRAL // or Configuration.GRAMMATICAL_GENDER_NOT_SPECIFIED ) val grammaticalGender = grammaticalInflectionManager?.applicationGrammaticalGender } // Using androidx.core API GrammaticalInflectionManagerCompat.setRequestedApplicationGrammaticalGender( context, GrammaticalInflectionManagerCompat.GRAMMATICAL_GENDER_FEMININE, ) val grammaticalGender = GrammaticalInflectionManagerCompat.getApplicationGrammaticalGender(context)
<path>] [-f] PROJECT_ROOT] PROJECT_ROOT: path to your project root (location of 'gradlew') -p: list package mappings and then exit -c: list class mappings (precedence over package mappings) and then exit -d: list dependency mappings and then exit -l: list files that will be considered for rewrite and then exit -x: exclude the path from the list of file to be changed: 'app/src/test' -m: migrate packages, classes and dependencies to AndroidX Media3 -f: force the action even when validation fails -v: print the exoplayer2/media3 version strings of this script -h, --help: show this help text औѱ Migration ೡ ࣻ ب۾ о٘৬ झ݀ܳ ઁҕೠ. 1. ୭न ExoPlayer ߡਵ۽ জਸ সؘೠ. 2. Migration झ݀ܳ ਊೞৈ, Media3 package nameਵ۽ Үೠ.