This is an example code of Android Slices usage.
Slices are UI templates that can display rich, dynamic, and interactive content from your app from within the Google Search app and later in other places like the Google Assistant. (from Android Doc https://developer.android.com/guide/slices/)
First you need to have installed Slice Viewer application. See Android Doc for more information how to install it. https://developer.android.com/guide/slices/getting-started