FoxitPDFSDKforWeb v10.0.0
Foxit PDF SDK for Web
|
A singleton class, which can be obtained via PDFUI.getStampService. It can be used to obtain the currently selected stamp icon and monitor the switching action between stamp icons. More...
Public Member Functions | |
StampInfo | getCurrentStampInfo () |
Obtains the current stamp info object if the current state handler is STATE_HANDLER_CREATE_STAMP . More... | |
Function | onSelectStampInfo (callback:(stampInfo:StampInfo|undefined)=>void) |
Listen to the stamp icon switching event, which is triggered when the stamp icon is switched using the StateHandlerManager.switchTo interface. The event will also be triggered when the state handler is switched from STATE_HANDLER_CREATE_STAMP to other state-handlers, At this time, the stampInfo obtained by the callback parameter will be undefined,. More... | |
A singleton class, which can be obtained via PDFUI.getStampService. It can be used to obtain the currently selected stamp icon and monitor the switching action between stamp icons.
Using in UIExtension
StampInfo StampService::getCurrentStampInfo | ( | ) |
Obtains the current stamp info object if the current state handler is STATE_HANDLER_CREATE_STAMP .
Function StampService::onSelectStampInfo | ( | callback:(stampInfo:StampInfo|undefined) | , |
void | |||
) |
Listen to the stamp icon switching event, which is triggered when the stamp icon is switched using the StateHandlerManager.switchTo interface. The event will also be triggered when the state handler is switched from STATE_HANDLER_CREATE_STAMP to other state-handlers, At this time, the stampInfo obtained by the callback parameter will be undefined,.
callback | (stampInfo: StampInfo | undefined) => void - The event listener function. |