# SDK常量说明

# 枚举

//对齐方式 EditorAlignStyle

EditorAlignLeft("null"),//会返回为null,EditorAlignLeft("left") //左对齐
EditorAlignCenter("center"),    //居中
EditorAlignRight("right"),     //右对齐
EditorAlignJustify("justify");    //两端对齐

//颜色样式EditorColorStyle

EditorColorStandardNone("null"),
EditorColorStandardGrey("gray"),         //#0d0d0d
EditorColorStandardGrey8("gray8"),       //#353535
EditorColorStandardGrey7("gray7"),       //#545454
EditorColorStandardGrey6("gray6"),       //#9e9e9e
EditorColorStandardGrey5("gray5"),       //#cccccc
EditorColorStandardGrey4("gray4"),       //#e6e6e6
EditorColorStandardGrey3("gray3"),       //#f7f7f7
EditorColorWhite("white"),               //#ffffff
EditorColorStandardRed("red"),           //#fd4c51
EditorColorStandardRed4("orange"),       //#fe9d9f
EditorColorStandardOrange("yellow"),     //#ff9500
EditorColorStandardOrange4("green"),     //#fec673
EditorColorStandardYellow("lakeBlue"),   //#ffd500
EditorColorStandardYellow4("cyan"),      //#ffe873
EditorColorStandardGreen("purple"),      //#52c41c
EditorColorStandardGreen4("roseRed"),    //#9ae277
EditorColorLakeBlue("red4"),             //#1990ff
EditorColorLakeBlue4("orange4"),         //#81c1ff
EditorColorStandardCyan("yellow4"),      //#0e65ff
EditorColorStandardCyan4("green4"),      //#7aa9ff
EditorColorStandardPurple("lakeBlue4"),  //#966fe7
EditorColorStandardPurple4("cyan4"),     //#c4aef3
EditorColorRoseRed("purple4"),           //#f050aa
EditorColorRoseRed4("roseRed4");         //#f89dd0

//字体大小EditorFontSizeStyle

EditorFontSizeStyleNone("null"),  //正文样式
EditorFontSizeStyle9("9"),     //字号9样式
EditorFontSizeStyle11("11"),    //字号11样式
EditorFontSizeStyle12("12"),    //字号12样式
EditorFontSizeStyle14("14"),    //字号14样式
EditorFontSizeStyle16("16"),    //字号16样式
EditorFontSizeStyle18("18");    //字号18样式

//字体样式EdEditorFontStyle

EditorFontStyleNone("null"),  //默认字体
EditorFontStyle9("宋体"),     //宋体
EditorFontStyle11("楷体"),    //楷体
EditorFontStyle12("黑体"),    //黑体
EditorFontStyle14("新宋体"),    //新宋体
EditorFontStyle16("Arial"),    //Arial
EditorFontStyle18("Time New Roman");    //Time New Roman

//标题类型EditorHeaderStyle

EditorHeaderStyleNone("p"),  //正文样式
EditorHeaderStyle1("1"),     //标题一样式
EditorHeaderStyle2("2"),     //标题二样式
EditorHeaderStyle3("3"),     //标题三样式
EditorHeaderStyle4("4");      //标题四样式

//缩进样式EditorIndentStyle

EditorIndentStyleNone("0"),   //取消缩进
EditorIndentStyleAdd("+1"),    //增加缩进
EditorIndentStyleMinus("-1") ;  //减小缩进

//列表样式EditorListStyle

EditorListStyleNone("null"),     //取消列表样式
EditorListStyleOrdered("ordered"),  //有序列表
EditorListStyleBullet("bullet");    //无序列表
EditorListStyleBullet("unchecked") //unchecked样式

//行高样式EditorScriptStyle

EditorScriptStyleNone("null"),  //取消
EditorScriptStyleSup("super"),   //上标
EditorScriptStyleSub("sub");    //下标

//行高样式EditorLineHeightStyle

EditorLineHeightNone("null"),
EditorLineHeight1("1"),     //1倍行间距
EditorLineHeight1P5("1.5"),   //1.5倍行间距
EditorLineHeight1P7("1.7"),   //1.7倍行间距
EditorLineHeight2("2"),     //2倍行间距
EditorLineHeight2P5("2.5"),   //2.5倍行间距
EditorLineHeight3("3");     //3倍行间距

# 参数约定

待补充

# 错误码

int SUCCESS = 0;//响应成功
int ERROR_ACCESS_TOKEN_EXPIRES = 40102;//access_token过期,需要刷新
int ERROR_ACCESS_TOKEN_NOT_LASTED = 40105;//access_token不是最新,需要刷新
int ERROR_ACCESS_TOKEN_INVALID = 40101;//access_token失效,需要重新登录

# FAQ

待补充

讯飞文档 SDK for Android