index.uts 352 B

1234567891011121314
  1. import { ShareWithSystemOptions } from "../interface.uts";
  2. import { share } from "./share.ets";
  3. export function shareWithSystem(options: ShareWithSystemOptions) {
  4. share(
  5. options.type,
  6. options.title ?? "",
  7. options.summary ?? "",
  8. options.href ?? "",
  9. options.imageUrl ?? "",
  10. options.success ?? (() => {}),
  11. options.fail ?? (() => {})
  12. );
  13. }