Skip to content

Commit

Permalink
[M3][Color] Updated Builder class for content color
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 489981392
  • Loading branch information
Material Design Team authored and dsn5ft committed Nov 21, 2022
1 parent 4619f31 commit 2351fd9
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -16,10 +16,13 @@

package com.google.android.material.color;

import static androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP;

import android.app.Activity;
import android.graphics.Bitmap;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;
import androidx.annotation.StyleRes;
import com.google.android.material.color.DynamicColors.OnAppliedCallback;
import com.google.android.material.color.DynamicColors.Precondition;
Expand Down Expand Up @@ -122,7 +125,10 @@ public Builder setOnAppliedCallback(@NonNull OnAppliedCallback onAppliedCallback
/**
* Sets the content based source image to extract the seed color from to generate Material color
* palette.
*
* @hide
*/
@RestrictTo(LIBRARY_GROUP)
@NonNull
@CanIgnoreReturnValue
public Builder setContentBasedSource(@NonNull Bitmap contentBasedSource) {
Expand Down

0 comments on commit 2351fd9

Please sign in to comment.