feat(examples): add native-shell workout host path
Extend the workout exemplar with a native-shell haptic request and acknowledgment path that validates the host manifest and returns through app code without owning workout state. req: host/001 req: host/002 req: host/004 req: host/005 req: examples/001
This commit is contained in:
@@ -70,8 +70,16 @@ fn registry(state: AppState) -> HandlerRegistry {
|
||||
let state = state.clone();
|
||||
move |_| workout_app::export_log(&state)
|
||||
})
|
||||
.on(workout::record_share_result, move |_| {
|
||||
workout_app::record_share_result(&state)
|
||||
.on(workout::record_share_result, {
|
||||
let state = state.clone();
|
||||
move |_| workout_app::record_share_result(&state)
|
||||
})
|
||||
.on(workout::request_native_haptic, {
|
||||
let state = state.clone();
|
||||
move |_| workout_app::request_native_haptic(&state)
|
||||
})
|
||||
.on(workout::record_native_haptic_ack, move |_| {
|
||||
workout_app::record_native_haptic_ack(&state)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user