public class WXAppExtendObject extends java.lang.Object implements WXMediaMessage.IMediaObject
SendAuth.Req
NOTE: extInfo, filePath and fileData can not be null at that same time.
filePath and fileData are not used at the same time.
SendAuth.Req
注意:extInfo, filePath和fileData不能同时为空
filePath和fileData不会同时被使用 限定符和类型 | 字段和说明 |
---|---|
java.lang.String |
extInfo
Extend text data for applications
NOTE: 2KB at most.
|
byte[] |
fileData
File binary data for applications
NOTE: Content size should be within 10MB
供第三方使用的文件二进制数据
注意:内容大小不能超过10MB |
java.lang.String |
filePath
Local directory of the file provided for applications
NOTE: The length should be within 10KB and content size within 10MB.
|
TYPE_APPBRAND, TYPE_APPDATA, TYPE_CARD_SHARE, TYPE_DESIGNER_SHARED, TYPE_DEVICE_ACCESS, TYPE_EMOJI, TYPE_EMOJILIST_SHARED, TYPE_EMOTICON_GIFT, TYPE_EMOTICON_SHARED, TYPE_EMOTIONLIST_SHARED, TYPE_FILE, TYPE_GIFTCARD, TYPE_IMAGE, TYPE_LOCATION, TYPE_LOCATION_SHARE, TYPE_MALL_PRODUCT, TYPE_MUSIC, TYPE_NOTE, TYPE_OLD_TV, TYPE_PRODUCT, TYPE_RECORD, TYPE_TEXT, TYPE_TV, TYPE_UNKNOWN, TYPE_URL, TYPE_VIDEO
构造器和说明 |
---|
WXAppExtendObject() |
WXAppExtendObject(java.lang.String extInfo,
byte[] fileData)
Constructor
构造函数 |
WXAppExtendObject(java.lang.String extInfo,
java.lang.String filePath)
Constructor
构造函数 |
限定符和类型 | 方法和说明 |
---|---|
boolean |
checkArgs()
Check validity of parameters of MediaObject
检查该MediaObject各个参数的合法性 |
void |
serialize(android.os.Bundle data)
Serialize member variables to bundle object 将成员变量序列化到bundle对象中 |
int |
type()
Load type of the current media object 获取当前媒体对象的类型 |
void |
unserialize(android.os.Bundle data)
Deserialize bundle object to initialize member variables 通过反序列化bundle对象初始化成员变量 |
public java.lang.String extInfo
public java.lang.String filePath
public byte[] fileData
public WXAppExtendObject()
public WXAppExtendObject(java.lang.String extInfo, byte[] fileData)
extInfo
- fileData
- public WXAppExtendObject(java.lang.String extInfo, java.lang.String filePath)
extInfo
- filePath
- public void serialize(android.os.Bundle data)
WXMediaMessage.IMediaObject
serialize
在接口中 WXMediaMessage.IMediaObject
data
- public void unserialize(android.os.Bundle data)
WXMediaMessage.IMediaObject
unserialize
在接口中 WXMediaMessage.IMediaObject
data
- public int type()
WXMediaMessage.IMediaObject
type
在接口中 WXMediaMessage.IMediaObject
public boolean checkArgs()
WXMediaMessage.IMediaObject
checkArgs
在接口中 WXMediaMessage.IMediaObject