Package io.didomi.sdk.vendors.ctv
Class TVVendorsViewModel
-
- All Implemented Interfaces:
@Singleton() public final class TVVendorsViewModel extends VendorsViewModel
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TVVendorsViewModel(ApiEventsRepository apiEventsRepository, ConfigurationRepository configurationRepository, EventsRepository eventsRepository, LanguagesHelper languagesHelper, ThemeProvider themeProvider, UserChoicesInfoProvider userChoicesInfoProvider, VendorRepository vendorRepository, LogoProvider logoProvider, ResourcesHelper resourcesHelper)
-
Method Summary
-
Methods inherited from class io.didomi.sdk.vendors.mobile.VendorsViewModel
allVendorsDisabled, allVendorsEnabled, getAdditionalDataProcessingDescription, getAllRequiredVendors, getCloseButtonAccessibility, getCloseDetailsButtonAccessibility, getConsentDataProcessingDescription, getDataCategories, getDeviceStorageDisclosuresLink, getEssentialPurposesDescription, getIgnoreVendorDataChanges, getLegitimateInterestDataProcessingDescription, getLogoProvider, getSelectedVendor, getSelectedVendorConsentAccessibility, getSelectedVendorConsentState, getSelectedVendorDeviceStorageDisclosuresLoaded, getSelectedVendorLegIntAccessibility, getSelectedVendorLegIntState, getShouldHandleAllVendorsState, getShouldHideDidomiLogo, getVendorItem, getVendorItemBulk, getVendorItemDetails, getVendorItemList, getVendorNameWithTag, getVendorSwitchStatus, handleVendorConsentSwitchChanged, handleVendorLegIntSwitchChanged, hasIabDisclaimer, hasLoadedVendorDeviceStorageDisclosures, initializeSelectedVendorStates, loadVendorDeviceStorageDisclosures, onBulkVendorSwitchWasToggled, onGlobalVendorSwitchChanged, onVendorSwitchWasToggled, onVendorsWasShown, setIgnoreVendorDataChanges, setSelectedVendor, setSelectedVendorConsentState, setSelectedVendorLegIntState, shouldDisplayDeviceStorageDisclosuresLink, shouldDisplayDeviceStorageDisclosuresList, shouldHandleConsentState, shouldHandleLegitimateInterestState, shouldHandleState, triggerEvent, updateAllVendors -
Methods inherited from class androidx.lifecycle.ViewModel
addCloseable -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
TVVendorsViewModel
TVVendorsViewModel(ApiEventsRepository apiEventsRepository, ConfigurationRepository configurationRepository, EventsRepository eventsRepository, LanguagesHelper languagesHelper, ThemeProvider themeProvider, UserChoicesInfoProvider userChoicesInfoProvider, VendorRepository vendorRepository, LogoProvider logoProvider, ResourcesHelper resourcesHelper)
-
-
Method Detail
-
getFocusedPosition
final Integer getFocusedPosition()
-
setFocusedPosition
final Unit setFocusedPosition(Integer focusedPosition)
-
getDetailFocusedPosition
final Integer getDetailFocusedPosition()
-
setDetailFocusedPosition
final Unit setDetailFocusedPosition(Integer detailFocusedPosition)
-
getVendorsTitleLabel
final String getVendorsTitleLabel()
-
getQuickActionTitleLabel
final String getQuickActionTitleLabel()
-
getSettingsTitleLabel
final String getSettingsTitleLabel()
-
getVendorConsentOnLabel
final String getVendorConsentOnLabel()
-
getVendorConsentOffLabel
final String getVendorConsentOffLabel()
-
getVendorOnLabel
final String getVendorOnLabel()
-
getVendorOffLabel
final String getVendorOffLabel()
-
getVendorsSectionTitleLabel
final String getVendorsSectionTitleLabel()
-
getVendorIabTitleLabel
final String getVendorIabTitleLabel()
-
getVendorLegIntOnLabel
final String getVendorLegIntOnLabel()
-
getVendorLegIntOffLabel
final String getVendorLegIntOffLabel()
-
getVendorLegIntLabel
final String getVendorLegIntLabel()
-
getVendorReadMoreLabel
final String getVendorReadMoreLabel()
-
getVendorConsentLabel
final String getVendorConsentLabel()
-
getVendorPrivacyPolicyTitle
final String getVendorPrivacyPolicyTitle()
-
getVendorIabDescriptionText
final String getVendorIabDescriptionText()
-
getVendorPrivacyDescriptionText
final String getVendorPrivacyDescriptionText()
-
getVendorLegIntClaimDescriptionText
final String getVendorLegIntClaimDescriptionText()
-
getVendorList
final List<TVVendorItem> getVendorList()
-
getVendorBulk
final TVVendorItem.Bulk getVendorBulk()
-
getTvVendorItemList
final List<TVVendorItem.Vendor> getTvVendorItemList()
-
getSelectedVendorName
final String getSelectedVendorName()
-
getSelectedVendorHasIABDisclaimer
final Boolean getSelectedVendorHasIABDisclaimer()
-
getSelectedVendorDetail
final List<TVVendorDetailItem> getSelectedVendorDetail()
-
getShouldHideReadMoreButtonFromVendorData
final Boolean getShouldHideReadMoreButtonFromVendorData()
Hide Vendor data's Read More button when TCF v2.2 - No legal description
-
getSelectedDataCategoryName
final String getSelectedDataCategoryName()
-
getSelectedDataCategoryDescription
final String getSelectedDataCategoryDescription()
-
buildVendorItem
final TVVendorItem.Vendor buildVendorItem(InternalVendor vendor)
Build Vendor Item
- Parameters:
vendor- as InternalVendor
-
onVendorTabSelected
final Unit onVendorTabSelected()
-
onBulkSwitchToggled
final Unit onBulkSwitchToggled(Boolean isChecked)
Handle bulk switch toggle.
-
onDetailVendorSwitchToggled
final Unit onDetailVendorSwitchToggled(Boolean isChecked)
-
onLegIntSwitchToggled
final Unit onLegIntSwitchToggled(Boolean isChecked)
-
isVendorSwitchChecked
final Boolean isVendorSwitchChecked(InternalVendor vendor)
Check is the vendor is ON
- Parameters:
vendor- affected vendor
-
getConsentDataPurposesListText
final SpannedString getConsentDataPurposesListText()
Get the purposes list based on consent formatted with bullets.
-
getAdditionalDataProcessingListText
final SpannedString getAdditionalDataProcessingListText()
Get the additional data processing list formatted with bullets.
-
getEssentialPurposesListText
final SpannedString getEssentialPurposesListText()
Get the essential purposes list formatted with bullets.
-
getLegIntDataPurposesListText
final SpannedString getLegIntDataPurposesListText()
Get the purposes list based on legitimate interest formatted with bullets.
-
getAdditionalInfoItemList
final List<TVVendorAdditionalInfoItem> getAdditionalInfoItemList(TVDataProcessingLegalType legalType)
Get Additional Info Item list
- Parameters:
legalType- as TVDataProcessingLegalType
-
getQRCodeVendorPrivacyImage
final Bitmap getQRCodeVendorPrivacyImage(Integer size)
-
getQRCodeVendorLegIntClaimImage
final Bitmap getQRCodeVendorLegIntClaimImage(Integer size)
-
getQRCodeIabImage
final Bitmap getQRCodeIabImage(Integer size)
-
resetSelectedVendor
final Unit resetSelectedVendor()
-
setSelectedDataCategory
final Unit setSelectedDataCategory(String id)
Sets the data category to display
- Parameters:
id- id of the data category
-
-
-
-