convertInterfaceValue static method

int convertInterfaceValue(
  1. int index
)

枚举Index转为对应原生接口返回值

index 枚举Index

returns 原生接口返回值

Implementation

static int convertInterfaceValue(int index) {
  if (index >= 0 && index <= 13) {
    return index - 1;
  }
  return -1;
}