Logo MVUish.Avalonia

ProgramBuilder<'Arg, 'Model, 'Msg, 'View> Type

Constructors

Constructor Description

ProgramBuilder(init, update, view)

Full Usage: ProgramBuilder(init, update, view)

Parameters:
Returns: ProgramBuilder<'Arg, 'Model, 'Msg, 'View>
init : Func<'Arg, ('Model * Action<Action<'Msg>, Action<string, exn>>)>
update : Func<'Msg, 'Model, ('Model * Action<Action<'Msg>, Action<string, exn>>)>
view : Func<IObservable<'Model>, Action<'Msg>, 'View>
Returns: ProgramBuilder<'Arg, 'Model, 'Msg, 'View>

Instance members

Instance member Description

this.Run

Full Usage: this.Run

Returns: 'View
Returns: 'View

this.RunWith

Full Usage: this.RunWith

Parameters:
    arg : 'Arg

Returns: 'View
arg : 'Arg
Returns: 'View

this.RunWithLifecycle

Full Usage: this.RunWithLifecycle

Parameters:
    arg : 'Arg

Returns: ProgramHandle<'View>
arg : 'Arg
Returns: ProgramHandle<'View>

this.RunWithLifetime

Full Usage: this.RunWithLifetime

Parameters:
Returns: ProgramHandle<'View>
visual : Visual
arg : 'Arg
Returns: ProgramHandle<'View>

this.WithConsoleTrace

Full Usage: this.WithConsoleTrace

Returns: ProgramBuilder<'Arg, 'Model, 'Msg, 'View>
Returns: ProgramBuilder<'Arg, 'Model, 'Msg, 'View>

this.WithErrorHandler

Full Usage: this.WithErrorHandler

Parameters:
    handler : Action<string, exn>

Returns: ProgramBuilder<'Arg, 'Model, 'Msg, 'View>
handler : Action<string, exn>
Returns: ProgramBuilder<'Arg, 'Model, 'Msg, 'View>

this.WithSubscription

Full Usage: this.WithSubscription

Parameters:
Returns: ProgramBuilder<'Arg, 'Model, 'Msg, 'View>
subscribe : Func<'Model, CSub<'Msg>>
Returns: ProgramBuilder<'Arg, 'Model, 'Msg, 'View>

this.WithTermination

Full Usage: this.WithTermination

Parameters:
    predicate : Func<'Msg, bool>
    onTerminate : Action<'Model>

Returns: ProgramBuilder<'Arg, 'Model, 'Msg, 'View>
predicate : Func<'Msg, bool>
onTerminate : Action<'Model>
Returns: ProgramBuilder<'Arg, 'Model, 'Msg, 'View>

this.WithTrace

Full Usage: this.WithTrace

Parameters:
Returns: ProgramBuilder<'Arg, 'Model, 'Msg, 'View>
trace : Action<'Msg, 'Model, IReadOnlyList<string>>
Returns: ProgramBuilder<'Arg, 'Model, 'Msg, 'View>

Type something to start searching.