Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 638 Bytes

SHARE.md

File metadata and controls

29 lines (24 loc) · 638 Bytes

Share

Simple and easy:

 fluwx.share(WeChatShareTextModel("source text", scene: WeChatScene.SESSION));

The destination of sharing can be SESSION(default),TIMELINE or FAVORITE.However,mini-program only support SESSION.

    ///[WeChatScene.session]会话
    ///[WeChatScene.timeline]朋友圈
    ///[WeChatScene.favorite]收藏
    enum WeChatScene {
      session,
      timeline,
      favorite
      }

You can share these models:

  • WeChatShareTextModel
  • WeChatShareMiniProgramModel
  • WeChatShareImageModel
  • WeChatShareMusicModel
  • WeChatShareVideoModel
  • WeChatShareWebPageModel
  • WeChatShareFileModel