gsdsdk / com.gsd.software.sdk.viewparser.dynamicview.viewmodel / DynamicViewModel

DynamicViewModel

class DynamicViewModel : ViewModel

Created by Maksim Shumko on 6/18/2020

Types

Name Summary
Error sealed class Error

Constructors

Name Summary
<init> DynamicViewModel(dynamicViewRepository:DynamicViewDataSource, dynamicRequestRepository:DynamicRequestSource, recipientsRepository:RecipientsDataSource, dynamicViewPreferences:DynamicViewPreferences)
Created by Maksim Shumko on 6/18/2020

Properties

Name Summary
closeEvent val closeEvent: SingleLiveEvent<Unit>
dynamicViewData val dynamicViewData: LiveData<Pair<DynamicView,Map<String,Any>>>
error val error: SingleLiveEvent<Error>
isLoading val isLoading: MutableLiveData<Boolean>
messageEvent val messageEvent: SingleLiveEvent<String>
openBrowserEvent val openBrowserEvent: SingleLiveEvent<String>
openDynamicFragmentEvent val openDynamicFragmentEvent: SingleLiveEvent<OpenDynamicFragmentEvent>
openMapEvent val openMapEvent: SingleLiveEvent<String>
openNativeDialogFragmentEvent val openNativeDialogFragmentEvent: SingleLiveEvent<OpenNativeDialogFragmentEvent>
openNativeFragmentEvent val openNativeFragmentEvent: SingleLiveEvent<OpenNativeFragmentEvent>
openSmsEvent val openSmsEvent: SingleLiveEvent<String>
openTelephoneEvent val openTelephoneEvent: SingleLiveEvent<String>
receiveValueEvent val receiveValueEvent: SingleLiveEvent<DynamicView>
recipients val recipients: LiveData<List<Recipient>>
successEvent val successEvent: SingleLiveEvent<String>

Functions

Name Summary
onActionType fun onActionType(actionType:ActionType):Unit
onButtonClick fun onButtonClick(item:Button):Unit
onMenuItemClick fun onMenuItemClick(menuAction:MenuAction):Unit
onNewChild fun onNewChild(childDynamicView:DynamicView):Unit
openObjectPickerFragment fun openObjectPickerFragment(viewId:String, parentViewId:String):Unit
reloadView fun reloadView():Unit
setClassName fun setClassName(name:String):Unit
setObjectOverviewId fun setObjectOverviewId(id:String):Unit
setViewId fun setViewId(id:String):Unit