1// Signature format: 2.0 2package android.widget.photopicker { 3 4 public interface EmbeddedPhotoPickerClient { 5 method public void onSelectionComplete(); 6 method public void onSessionError(@NonNull Throwable); 7 method public void onSessionOpened(@NonNull android.widget.photopicker.EmbeddedPhotoPickerSession); 8 method public void onUriPermissionGranted(@NonNull java.util.List<android.net.Uri>); 9 method public void onUriPermissionRevoked(@NonNull java.util.List<android.net.Uri>); 10 } 11 12 public final class EmbeddedPhotoPickerFeatureInfo implements android.os.Parcelable { 13 method public int describeContents(); 14 method @ColorLong public long getAccentColor(); 15 method public int getMaxSelectionLimit(); 16 method @NonNull public java.util.List<java.lang.String> getMimeTypes(); 17 method @NonNull public java.util.List<android.net.Uri> getPreSelectedUris(); 18 method public int getThemeNightMode(); 19 method public boolean isOrderedSelection(); 20 method public void writeToParcel(@NonNull android.os.Parcel, int); 21 field @NonNull public static final android.os.Parcelable.Creator<android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo> CREATOR; 22 } 23 24 public static final class EmbeddedPhotoPickerFeatureInfo.Builder { 25 ctor public EmbeddedPhotoPickerFeatureInfo.Builder(); 26 method @NonNull public android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo build(); 27 method @NonNull public android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo.Builder setAccentColor(@ColorLong long); 28 method @NonNull public android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo.Builder setMaxSelectionLimit(@IntRange(from=1) int); 29 method @NonNull public android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo.Builder setMimeTypes(@NonNull java.util.List<java.lang.String>); 30 method @NonNull public android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo.Builder setOrderedSelection(boolean); 31 method @NonNull public android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo.Builder setPreSelectedUris(@NonNull java.util.List<android.net.Uri>); 32 method @NonNull public android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo.Builder setThemeNightMode(int); 33 } 34 35 public interface EmbeddedPhotoPickerProvider { 36 method public void openSession(@NonNull android.os.IBinder, int, int, int, @NonNull android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo, @NonNull java.util.concurrent.Executor, @NonNull android.widget.photopicker.EmbeddedPhotoPickerClient); 37 } 38 39 public class EmbeddedPhotoPickerProviderFactory { 40 method @NonNull public static android.widget.photopicker.EmbeddedPhotoPickerProvider create(@NonNull android.content.Context); 41 } 42 43 public interface EmbeddedPhotoPickerSession { 44 method public void close(); 45 method @NonNull public android.view.SurfaceControlViewHost.SurfacePackage getSurfacePackage(); 46 method public void notifyConfigurationChanged(@NonNull android.content.res.Configuration); 47 method public void notifyPhotoPickerExpanded(boolean); 48 method public void notifyResized(int, int); 49 method public void notifyVisibilityChanged(boolean); 50 method public void requestRevokeUriPermission(@NonNull java.util.List<android.net.Uri>); 51 } 52 53} 54 55