use of org.odk.collect.android.widgets.utilities.ViewModelAudioPlayer in project collect by opendatakit.
the class FormEntryActivity method createODKView.
@NotNull
private ODKView createODKView(boolean advancingPage, FormEntryPrompt[] prompts, FormEntryCaption[] groups) {
odkViewLifecycle.start();
AudioClipViewModel.Factory factory = new AudioClipViewModel.Factory(MediaPlayer::new, scheduler);
ViewModelAudioPlayer viewModelAudioPlayer = new ViewModelAudioPlayer(ViewModelProviders.of(this, factory).get(AudioClipViewModel.class), odkViewLifecycle);
return new ODKView(this, prompts, groups, advancingPage, formSaveViewModel, waitingForDataRegistry, viewModelAudioPlayer, audioRecorder, formEntryViewModel, internalRecordingRequester, externalAppRecordingRequester);
}
Aggregations