Package com.xffffff.wellfed.recipe
Class RecipeContract
- java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RecipeContract()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.content.Intent
createIntent(android.content.Context context, Recipe recipe)
Creates an intent that contains recipeRecipe
android.util.Pair<java.lang.String,Recipe>
parseResult(int i, android.content.Intent intent)
Parse the response from the activity as required
-
-
-
Method Detail
-
createIntent
@NonNull public android.content.Intent createIntent(@NonNull android.content.Context context, Recipe recipe)
Creates an intent that contains recipeRecipe
-
parseResult
public android.util.Pair<java.lang.String,Recipe> parseResult(int i, @Nullable android.content.Intent intent)
Parse the response from the activity as required- Specified by:
parseResult
in classandroidx.activity.result.contract.ActivityResultContract<Recipe,android.util.Pair<java.lang.String,Recipe>>
- Parameters:
i
- a status code representing whether the activity succeeded or notintent
- the intent returned by the activity upon completion- Returns:
- null if activity was interrupted or failed to return anything
-
-