index.uts 325 B

12345678910111213
  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.url ?? "",
  9. options.success ?? (() => {}),
  10. options.fail ?? (() => {})
  11. );
  12. }