0.10.0 • Published 17 days ago
@ionic/portals v0.10.0
Ionic Portals
Plugin SDK for Ionic Portals
Install
npm install @ionic/portals
API
getInitialContext()
getInitialContext<T = unknown>() => any
Returns: any
publish(...)
publish<TData>(message: PortalMessage<TData>) => any
Param | Type |
---|---|
message | PortalMessage<TData> |
Returns: any
subscribe(...)
subscribe<T = unknown>(options: SubscribeOptions, callback: SubscriptionCallback<T>) => any
Param | Type |
---|---|
options | SubscribeOptions |
callback | (result: { topic: string; data: T; }) => void |
Returns: any
unsubscribe(...)
unsubscribe(options: PortalSubscription) => any
Param | Type |
---|---|
options | PortalSubscription |
Returns: any
Interfaces
InitialContext
Prop | Type |
---|---|
name | string |
value | T |
assets | { key: string: string; } |
PortalMessage
Prop | Type |
---|---|
topic | string |
data | TData |
SubscribeOptions
Prop | Type |
---|---|
topic | string |
PortalSubscription
Prop | Type |
---|---|
subscriptionRef | number |
topic | string |
0.10.0
17 days ago
0.9.0
3 months ago
0.8.1
12 months ago
0.8.0
12 months ago
0.7.1
1 year ago
0.7.0
1 year ago
0.6.0
2 years ago
0.5.0
2 years ago
0.4.1
2 years ago
0.3.0
2 years ago
0.3.1
2 years ago
0.2.2
3 years ago
0.2.1
3 years ago
0.1.0
3 years ago
0.1.2
3 years ago
0.2.0
3 years ago
0.1.7
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.1
3 years ago