[interface]应用互动接口 提供邀请者的信息
更多...
#include <yy-api-client.h>
|
enum | InviteType { EINVITE_NONE = 0,
EINVITE_SUB_CHANNEL_ALL,
EINVITE_SUB_CHANNEL_USER
} |
|
|
virtual int | GetInviter (unsigned int &uid)=0 |
| 获取邀请者uid,只有在被邀请启动应用才能获取成功
|
|
virtual int | Invite (InviteType type)=0 |
| 发起一次邀请
|
|
virtual int | GetRunParams (char *params, unsigned int &size)=0 |
| 应用交互启动的参数
|
|
[interface]应用互动接口 提供邀请者的信息
virtual int yy::IInteraction::GetInviter |
( |
unsigned int & |
uid | ) |
|
|
pure virtual |
获取邀请者uid,只有在被邀请启动应用才能获取成功
- 参数
-
unsigned | int &uid [inout], 邀请者 uid |
- 返回
- int, 0 success,其他值 error,查看错误代码表
virtual int yy::IInteraction::GetRunParams |
( |
char * |
params, |
|
|
unsigned int & |
size |
|
) |
| |
|
pure virtual |
应用交互启动的参数
- 参数
-
char | *params [inout],交互方式启动的运行参数字符串地址,编码:UTF-8 |
int | size [inout], 字符串大小 size <= 512 |
- 返回
- int, 0 success,其他值 error,查看错误代码表
virtual int yy::IInteraction::Invite |
( |
InviteType |
type | ) |
|
|
pure virtual |
发起一次邀请
- 参数
-
- 返回
- int, 0 success,其他值 error,查看错误代码表