本文整理汇总了Java中com.github.barcodeeye.scan.result.internal.UriResultProcessor类的典型用法代码示例。如果您正苦于以下问题:Java UriResultProcessor类的具体用法?Java UriResultProcessor怎么用?Java UriResultProcessor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UriResultProcessor类属于com.github.barcodeeye.scan.result.internal包,在下文中一共展示了UriResultProcessor类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: makeResultProcessor
import com.github.barcodeeye.scan.result.internal.UriResultProcessor; //导入依赖的package包/类
public static ResultProcessor<? extends ParsedResult> makeResultProcessor(
Context context, Result result, Uri photoUri) {
ParsedResult parsedResult = ResultParser.parseResult(result);
switch (parsedResult.getType()) {
/*case PRODUCT:
return new ProductResultProcessor(context,
(ProductParsedResult) parsedResult, result, photoUri);*/
case URI:
return new UriResultProcessor(context,
(URIParsedResult) parsedResult, result, photoUri);
/*case ISBN:
return new IsbnResultProcessor(context,
(ISBNParsedResult) parsedResult, result, photoUri);*/
case SMS:
case GEO:
case TEL:
case CALENDAR:
case ADDRESSBOOK:
case EMAIL_ADDRESS:
case WIFI:
// currently unsupported so we let them fall through
default:
return new TextResultProcessor(context, parsedResult, result, photoUri);
}
}
开发者ID:corneliudascalu,项目名称:google-glass-share-barcode-bluetooth,代码行数:28,代码来源:ResultProcessorFactory.java
示例2: makeResultProcessor
import com.github.barcodeeye.scan.result.internal.UriResultProcessor; //导入依赖的package包/类
public static ResultProcessor<? extends ParsedResult> makeResultProcessor(
Context context, Result result, Uri photoUri) {
ParsedResult parsedResult = ResultParser.parseResult(result);
switch (parsedResult.getType()) {
case PRODUCT:
return new ProductResultProcessor(context,
(ProductParsedResult) parsedResult, result, photoUri);
case URI:
return new UriResultProcessor(context,
(URIParsedResult) parsedResult, result, photoUri);
case ISBN:
return new IsbnResultProcessor(context,
(ISBNParsedResult) parsedResult, result, photoUri);
case SMS:
case GEO:
case TEL:
case CALENDAR:
case ADDRESSBOOK:
case EMAIL_ADDRESS:
case WIFI:
// currently unsupported so we let them fall through
default:
return new TextResultProcessor(context, parsedResult, result, photoUri);
}
}