UIView Model
class UIViewModel @Inject constructor(app: Application, nodeDB: NodeRepository, serviceRepository: ServiceRepository, radioInterfaceService: RadioInterfaceService, meshLogRepository: MeshLogRepository, firmwareReleaseRepository: FirmwareReleaseRepository, uiPreferencesDataSource: UiPreferencesDataSource, meshServiceNotifications: MeshServiceNotifications, analytics: PlatformAnalytics, packetRepository: PacketRepository) : ViewModel(source)
Constructors
Link copied to clipboard
@Inject
Types
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Emits events for mesh network send/receive activity. This is a SharedFlow to ensure all events are delivered, even if they are the same.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Called immediately after activity observes requestChannelUrl
Link copied to clipboard
Called immediately after activity observes requestChannelUrl
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun showSnackBar(text: String, actionLabel: String? = null, withDismissAction: Boolean = false, duration: SnackbarDuration = if (actionLabel == null) SnackbarDuration.Short else SnackbarDuration.Indefinite, onActionPerformed: () -> Unit = {}, onDismissed: () -> Unit = {}): Job