showSignature.d.ts 629 B

1234567891011121314151617181920212223242526
  1. declare type SignatureMode = 0 | 1;
  2. export interface ShowSignatureParams {
  3. mode: SignatureMode;
  4. copyRight: string;
  5. url?: string;
  6. fileName?: string;
  7. fileType?: string;
  8. userName?: string;
  9. isSupportPen?: boolean;
  10. top?: number;
  11. left?: number;
  12. width?: number;
  13. height?: number;
  14. }
  15. export interface ShowSignatureResult {
  16. mode: SignatureMode;
  17. reason: string;
  18. url: string;
  19. }
  20. declare function showSignature(params: ShowSignatureParams): Promise<ShowSignatureResult>;
  21. declare namespace showSignature {
  22. var version: {
  23. android: string;
  24. };
  25. }
  26. export default showSignature;