C++
Example call
SonarCocosHelper::WeChat::methodToCall( );
Share text content to WeChat
static void shareTextToWeChat( cocos2d::__String shareString );
Share images to WeChat
static void shareImageToWeChat( cocos2d::__String thumbImgPath, cocos2d::__String imgPath );
Share link to WeChat
static void shareLinkToWeChat( cocos2d::__String thumbImgPath, cocos2d::__String msgTitle, cocos2d::__String msgDescription, cocos2d::__String httpUrl );
Share music to WeChat
static void shareMusicToWeChat( cocos2d::__String msgTitle, cocos2d::__String msgDescription, cocos2d::__String thumbImgPath, cocos2d::__String musicUrl, cocos2d::__String musicDataURL );
Share video to WeChat
static void shareVideoToWeChat( cocos2d::__String msgTitle, cocos2d::__String msgDescription, cocos2d::__String thumbImgPath, cocos2d::__String videoUrl );
JavaScript
Example call
SonarCocosHelper.WeChat.methodToCall( );
Share text content to WeChat
SonarCocosHelper.WeChat.shareTextToWeChat = function( textMsg )
Share images to WeChat
SonarCocosHelper.WeChat.shareImageToWeChat = function( thumbImgPath, imgPath )
Share link to WeChat
SonarCocosHelper.WeChat.shareLinkToWeChat = function( thumbImgPath, msgTitle, msgDescription, httpUrl )
Share music to WeChat
SonarCocosHelper.WeChat.shareMusicToWeChat = function( msgTitle, msgDescription, thumbImgPath, musicUrl, musicDataURL )
Share video to WeChat
SonarCocosHelper.WeChat.shareVideoToWeChat = function( msgTitle, msgDescription, thumbImgPath, videoUrl )