SkedGo Logo TripKit SDK for Android
  • Getting Started
  • Guide
    • TripKit Map Fragment
    • Location Search
    • Trip Results
    • Service & Stop Detail
    • Routes for region
    • Get off alerts
    • Viewcontroller
  • SDK Reference
  • API
  • Developer
    • Docs
    • API
    • iOS
    • Android
    • React
  • SkedGo
  • Log in
  • Sign up
  • Getting Started
  • Guide
    • TripKit Map Fragment
    • Location Search
    • Trip Results
    • Service & Stop Detail
    • Routes for region
    • Get off alerts
    • Viewcontroller
  • SDK Reference
  • API
  • Docs
  • API
  • iOS
  • Android
  • React
  • SkedGo
  • Log in
  • Sign up
  • TripSegmentGetOffAlertsViewModel
  • Types
  • Properties
  • Functions

/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.tripresult/TripSegmentGetOffAlertsViewModel

TripSegmentGetOffAlertsViewModel

\ class TripSegmentGetOffAlertsViewModel : RxViewModel

Types

Name Summary
Companion object Companion

Properties

Name Summary
_getOffAlertStateOn val _getOffAlertStateOn: MutableLiveData<Boolean>
alertStateToggleCustomValidation var alertStateToggleCustomValidation: (Context, Boolean) -> Unit?
getOffAlertStateOn val getOffAlertStateOn: LiveData<Boolean>
isVisible val isVisible: LiveData<Boolean>
itemBinding val itemBinding: ItemBinding<TripSegmentGetOffAlertDetailViewModel>
items val items: DiffObservableList<TripSegmentGetOffAlertDetailViewModel>
trip var trip: Trip

Functions

Name Summary
addCloseable open fun addCloseable(@NonNullp0: Closeable)
autoClear fun <T> Observable<T>.autoClear(): Observable<T>
fun Disposable.autoClear()
onAlertChange fun onAlertChange(context: Context, isOn: Boolean)
onCleared open override fun onCleared()
This method will be called when this ViewModel is no longer used and will be destroyed.
setAlertState fun setAlertState(context: Context, isOn: Boolean)
setGetOffAlertStateOn fun setGetOffAlertStateOn(isOn: Boolean)
setup fun setup(context: Context, details: List<TripSegmentGetOffAlertDetailViewModel>)
validate fun validate()
TripKit SDK for Android
  • Pricing
  • Report issue
  • Email support