QQApiURLObject
用于分享URL地址所指向的目标类型的对象基类。
- 父类
QQApiObject
- 初始化方法
-(id)initWithURL:(NSURL*)url title:(NSString*)title description:(NSString*)description previewImageData:(NSData*)data targetContentType:(QQApiURLTargetType)targetContentType; -(id)initWithURL:(NSURL*)url title:(NSString*)title description: (NSString*)description previewImageURL : (NSURL*) previewURL targetContentType: (QQApiURLTargetType) targetContentType; |
- 工厂方法
+(id)objectWithURL :(NSURL*)url title:(NSString*)title description:(NSString*)description previewImageData:(NSData*)data targetContentType:(QQApiURLTargetType)targetContentType; +(id)objectWithURL :(NSURL*)url title:(NSString*)title description:(NSString*)description previewImageURL :(NSURL*)previewURL targetContentType:(QQApiURLTargetType)targetContentType; |
- 属性说明
参数 | 类型 | 含义 |
url | NSURL | URL地址,必填,最长512字符 |
previewImageURL | NSURL | 预览图像URL **预览图像数据与预览图像URL可二选一 |
previewImageData | NSData | 预览图像数据,最大1M字节 |
targetContentType | QQApiURLTargetType | URL地址所指向的目标类型. |
其中,targetContentType的类型为枚举类型QQApiURLTargetType,有如下四种值:
QQApiURLTargetType | 含义 |
QQApiURLTargetTypeNotSpecified | 未指定类型 |
QQApiURLTargetTypeAudio | 音频类型 |
QQApiURLTargetTypeVideo | 视频类型 |
QQApiURLTargetTypeNews | 新闻类型 |