Package com.xffffff.wellfed.recipe
Class RecipeEditContract
- java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RecipeEditContract()
-
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 for the recipe edit activity to be launchedandroid.util.Pair<java.lang.String,Recipe>
parseResult(int i, android.content.Intent intent)
Parses the result from the recipe edit activity
-
-
-
Method Detail
-
createIntent
@NonNull public android.content.Intent createIntent(@NonNull android.content.Context context, Recipe recipe)
Creates an intent for the recipe edit activity to be launched
-
parseResult
public android.util.Pair<java.lang.String,Recipe> parseResult(int i, @Nullable android.content.Intent intent)
Parses the result from the recipe edit activity- Specified by:
parseResult
in classandroidx.activity.result.contract.ActivityResultContract<Recipe,android.util.Pair<java.lang.String,Recipe>>
- Parameters:
i
- result code of the activityintent
- intent returned in the result- Returns:
- a pair identifying that it is a recipe related activity and the recipe created by the edit activity
-
-