@bigcommerce/checkout-sdk / IframeEventListener
Name | Type |
---|---|
TEventMap |
extends IframeEventMap <keyof TEventMap > |
TContext |
undefined |
• new IframeEventListener<TEventMap
, TContext
>(sourceOrigin
)
Name | Type |
---|---|
TEventMap |
extends IframeEventMap <keyof TEventMap > |
TContext |
undefined |
Name | Type |
---|---|
sourceOrigin |
string |
▸ addListener<TType
>(type
, listener
): void
Name | Type |
---|---|
TType |
extends string | number | symbol |
Name | Type |
---|---|
type |
TType |
listener |
(event : TEventMap [TType ], context? : TContext ) => void |
void
▸ listen(): void
void
▸ removeListener<TType
>(type
, listener
): void
Name | Type |
---|---|
TType |
extends string | number | symbol |
Name | Type |
---|---|
type |
TType |
listener |
(event : TEventMap [TType ], context? : TContext ) => void |
void
▸ stopListen(): void
void
▸ trigger<TType
>(event
, context?
): void
Name | Type |
---|---|
TType |
extends string | number | symbol |
Name | Type |
---|---|
event |
TEventMap [TType ] |
context? |
TContext |
void