HubChannel - How to define their own channels for intra-app communication. #1738
Labels
core
Amplify Core library
feature-request
Request a new feature
improvement
Any improvement that's not a bug and not requesting new functionality
Before opening, please confirm:
Language and Async Model
Java
Amplify Categories
Not applicable
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the feature request
In the HubChannel class, it said "Apps can define their own channels for intra-app communication.":
But in the HubCategory.subscribe(@nonnull HubChannel hubChannel, @nonnull HubSubscriber hubSubscriber) method, the method only accepts the HubChannel enum. Which means we can not extend and define custom channels.
Could you please change the HubChannel to an interface instead of enum to make it extandable?
Initialization steps (if applicable)
No response
Code Snippet
// Put your code below this line.
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: