本文整理匯總了Java中cn.sharesdk.wechat.utils.WXMediaMessage類的典型用法代碼示例。如果您正苦於以下問題:Java WXMediaMessage類的具體用法?Java WXMediaMessage怎麽用?Java WXMediaMessage使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
WXMediaMessage類屬於cn.sharesdk.wechat.utils包,在下文中一共展示了WXMediaMessage類的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onShowMessageFromWXReq
import cn.sharesdk.wechat.utils.WXMediaMessage; //導入依賴的package包/類
public void onShowMessageFromWXReq(WXMediaMessage msg) {
if (msg != null && msg.mediaObject != null
&& (msg.mediaObject instanceof WXAppExtendObject)) {
WXAppExtendObject obj = (WXAppExtendObject) msg.mediaObject;
Toast.makeText(this, obj.extInfo, Toast.LENGTH_SHORT).show();
}
}
示例2: onShowMessageFromWXReq
import cn.sharesdk.wechat.utils.WXMediaMessage; //導入依賴的package包/類
public void onShowMessageFromWXReq(WXMediaMessage msg) {
if (msg != null && msg.mediaObject != null
&& (msg.mediaObject instanceof WXAppExtendObject)) {
WXAppExtendObject obj = (WXAppExtendObject) msg.mediaObject;
Toast.makeText(this, obj.extInfo + " ", Toast.LENGTH_SHORT).show();
}
}
示例3: onShowMessageFromWXReq
import cn.sharesdk.wechat.utils.WXMediaMessage; //導入依賴的package包/類
/**
* Handling message which sent from wechat
* <p>
* This message will be sent from wechat by chlicking this app-type
* message in the chatting list
*/
public void onShowMessageFromWXReq(WXMediaMessage msg) {
if (msg != null && msg.mediaObject != null
&& (msg.mediaObject instanceof WXAppExtendObject)) {
WXAppExtendObject obj = (WXAppExtendObject) msg.mediaObject;
Toast.makeText(this, obj.extInfo, Toast.LENGTH_SHORT).show();
}
}
示例4: onShowMessageFromWXReq
import cn.sharesdk.wechat.utils.WXMediaMessage; //導入依賴的package包/類
/**
* Handling message which sent from wechat
* <p>
* This message will be sent from wechat by chlicking this app-type
* message in the chatting list
*/
//#endif
public void onShowMessageFromWXReq(WXMediaMessage msg) {
if (msg != null && msg.mediaObject != null
&& (msg.mediaObject instanceof WXAppExtendObject)) {
WXAppExtendObject obj = (WXAppExtendObject) msg.mediaObject;
Toast.makeText(this, obj.extInfo, Toast.LENGTH_SHORT).show();
}
}
示例5: onGetMessageFromWXReq
import cn.sharesdk.wechat.utils.WXMediaMessage; //導入依賴的package包/類
public void onGetMessageFromWXReq(WXMediaMessage msg) {
startActivity(getPackageManager().getLaunchIntentForPackage(getPackageName()));
}
示例6: onShowMessageFromWXReq
import cn.sharesdk.wechat.utils.WXMediaMessage; //導入依賴的package包/類
public void onShowMessageFromWXReq(WXMediaMessage msg) {
if (msg != null && msg.mediaObject != null && (msg.mediaObject instanceof
WXAppExtendObject)) {
Toast.makeText(this, msg.mediaObject.extInfo, 0).show();
}
}
示例7: onGetMessageFromWXReq
import cn.sharesdk.wechat.utils.WXMediaMessage; //導入依賴的package包/類
public void onGetMessageFromWXReq(WXMediaMessage msg) {
Intent iLaunchMyself = getPackageManager().getLaunchIntentForPackage(getPackageName());
startActivity(iLaunchMyself);
}
示例8: onGetMessageFromWXReq
import cn.sharesdk.wechat.utils.WXMediaMessage; //導入依賴的package包/類
public void onGetMessageFromWXReq(WXMediaMessage msg) {
Intent iLaunchMyself = getPackageManager().getLaunchIntentForPackage(
getPackageName());
startActivity(iLaunchMyself);
}
示例9: onGetMessageFromWXReq
import cn.sharesdk.wechat.utils.WXMediaMessage; //導入依賴的package包/類
@Override
public void onGetMessageFromWXReq(WXMediaMessage wxMediaMessage) {
super.onGetMessageFromWXReq(wxMediaMessage);
}
示例10: onShowMessageFromWXReq
import cn.sharesdk.wechat.utils.WXMediaMessage; //導入依賴的package包/類
/**
* 處理微信向第三方應用發起的消息
* <p>
* 此處用來接收從微信發送過來的消息,比方說本demo在wechatpage裏麵分享
* 應用時可以不分享應用文件,而分享一段應用的自定義信息。接受方的微信
* 客戶端會通過這個方法,將這個信息發送回接收方手機上的本demo中,當作
* 回調。
* <p>
* 本Demo隻是將信息展示出來,但你可做點其他的事情,而不僅僅隻是Toast
*/
public void onShowMessageFromWXReq(WXMediaMessage msg) {
if (msg != null && msg.mediaObject != null
&& (msg.mediaObject instanceof WXAppExtendObject)) {
WXAppExtendObject obj = (WXAppExtendObject) msg.mediaObject;
Toast.makeText(this, obj.extInfo, Toast.LENGTH_SHORT).show();
}
}
示例11: onGetMessageFromWXReq
import cn.sharesdk.wechat.utils.WXMediaMessage; //導入依賴的package包/類
/**
* 處理微信發出的向第三方應用請求app message
* <p>
* 在微信客戶端中的聊天頁麵有“添加工具”,可以將本應用的圖標添加到其中
* 此後點擊圖標,下麵的代碼會被執行。Demo僅僅隻是打開自己而已,但你可
* 做點其他的事情,包括根本不打開任何頁麵
*/
public void onGetMessageFromWXReq(WXMediaMessage msg) {
if (msg != null) {
Intent iLaunchMyself = getPackageManager().getLaunchIntentForPackage(getPackageName());
startActivity(iLaunchMyself);
}
}
示例12: onGetMessageFromWXReq
import cn.sharesdk.wechat.utils.WXMediaMessage; //導入依賴的package包/類
/**
* 處理微信發出的向第三方應用請求app message
* <p>
* 在微信客戶端中的聊天頁麵有“添加工具”,可以將本應用的圖標添加到其中
* 此後點擊圖標,下麵的代碼會被執行。Demo僅僅隻是打開自己而已,但你可
* 做點其他的事情,包括根本不打開任何頁麵
*/
public void onGetMessageFromWXReq(WXMediaMessage msg) {
if (msg != null) {
Intent iLaunchMyself = getPackageManager().getLaunchIntentForPackage(getPackageName());
startActivity(iLaunchMyself);
}
}
示例13: onShowMessageFromWXReq
import cn.sharesdk.wechat.utils.WXMediaMessage; //導入依賴的package包/類
/**
* 處理微信向第三方應用發起的消息
* <p>
* 此處用來接收從微信發送過來的消息,比方說本demo在wechatpage裏麵分享
* 應用時可以不分享應用文件,而分享一段應用的自定義信息。接受方的微信
* 客戶端會通過這個方法,將這個信息發送回接收方手機上的本demo中,當作
* 回調。
* <p>
* 本Demo隻是將信息展示出來,但你可做點其他的事情,而不僅僅隻是Toast
*/
public void onShowMessageFromWXReq(WXMediaMessage msg) {
if (msg != null && msg.mediaObject != null
&& (msg.mediaObject instanceof WXAppExtendObject)) {
WXAppExtendObject obj = (WXAppExtendObject) msg.mediaObject;
Toast.makeText(this, obj.extInfo, Toast.LENGTH_SHORT).show();
}
}