
com.eaglesakura.workflowdispatcher.OnDialogResultFlow.kt Maven / Gradle / Ivy
package com.eaglesakura.workflowdispatcher
/**
* Annotation to startActivityForResult:onActivityResult flow.
*
* e.g.)
* class ExampleFlow : Fragment() {
* fun startFlow() {
* val dialogFactory = AlertDialogFactory.Builder() {
* // setup
* }.build()
* exampleDialogFlow(dialogFactory) // call generated entry-point.
* }
*
* @UiThread
* @OnDialogResultFlow("exampleDialogFlow")
* fun onExampleDialogFlowResult(result: DialogResult, savedFlowState: Bundle?) {
* // do something
* }
* }
*/
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.BINARY)
annotation class OnDialogResultFlow(
/**
* Generate entry-point function name.
*/
val entryPointName: String
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy