IFlyIdentityVerifierDelegate.h 933 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // IFlyIdentityVerifierDelegate.h
  3. // IFlyMSC
  4. //
  5. // Created by 张剑 on 15/4/22.
  6. // Copyright (c) 2015年 iflytek. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class IFlySpeechError;
  10. @class IFlyIdentityResult;
  11. /**
  12. * 身份验证功能类回调
  13. */
  14. @protocol IFlyIdentityVerifierDelegate <NSObject>
  15. /*!
  16. * 错误回调
  17. *
  18. * @param error 错误描述类
  19. */
  20. - (void)onCompleted:(IFlySpeechError *)error;
  21. /*!
  22. * 结果回调
  23. *
  24. * @param results -[out] 结果。
  25. * @param isLast -[out] 是否最后一条结果
  26. */
  27. - (void)onResults:(IFlyIdentityResult *)results isLast:(BOOL)isLast;
  28. /**
  29. * 扩展接口,用于抛出音量和vad_eos消息
  30. *
  31. * @param eventType 消息类型
  32. * @param arg1 eventType为 Event_volume 时 arg1为音量值
  33. * @param arg2 参数2
  34. * @param obj 扩展参数
  35. */
  36. - (void)onEvent:(int)eventType arg1:(int)arg1 arg2:(int)arg2 extra:(id)obj;
  37. @end