Muzei API 3.4.0 Alpha 2 includes a number of functional and API changes. It is compatible with Muzei 3.3.0 and higher.
- #658 - Adds a new
MuzeiContract.Sources.isProviderSelected(authority: String)API (and a Kotlin extension onProviderClient) to allow you to query whether the givenMuzeiArtProvideris currently selected within Muzei. This API is compatible with all Muzei2.Xversions. - #659 - Adds a new
MuzeiContract.Sources.createChooseProviderIntent(authority: String)API to deep link directly into Muzei's "Sources" screen, automatically scrolling to the givenMuzeiArtProvider, making it much easier to ask users to select yourMuzeiArtProvider. This is only compatible with Muzei3.4.0 Alpha 2or higher (callingstartActivity()with theIntentreturned will throw anActivityNotFoundExceptionif a previous version of Muzei is installed).
See milestone for full change details.
Include the Muzei API in your app by adding the dependency to your build.gradle:
implementation "com.google.android.apps.muzei:muzei-api:3.4.0-alpha02"
Note: Muzei API depends on AndroidX. You must migrate to AndroidX to use the Muzei API.