枚举Index转为对应原生接口返回值
index 枚举Index
index
returns 原生接口返回值
returns
static int convertInterfaceValue(int index) { if (index >= 0 && index <= 13) { return index - 1; } return -1; }