-
- All Implemented Interfaces:
-
androidx.lifecycle.ViewModelProvider.Factory
public final class MediaGalleryPreviewViewModelFactory implements ViewModelProvider.Factory
Holds the dependencies required for the Media Preview Screen. Currently builds the MediaGalleryPreviewViewModel using those dependencies.
-
-
Constructor Summary
Constructors Constructor Description MediaGalleryPreviewViewModelFactory(ChatClient chatClient, ClientState clientState, String messageId, Boolean skipEnrichUrl)
-
Method Summary
-
-
Constructor Detail
-
MediaGalleryPreviewViewModelFactory
MediaGalleryPreviewViewModelFactory(ChatClient chatClient, ClientState clientState, String messageId, Boolean skipEnrichUrl)
- Parameters:
chatClient- An instance of the low level client used for basic chat API functionality.clientState- Holds information about the current SDK state.messageId- The ID of the message we are fetching in order to display the attachments.skipEnrichUrl- If set to true will skip enriching URLs when you update the message by deleting an attachment contained within it.
-
-
-
-