TrillBit SDK
  • Introduction
  • technological overview
    • In this release
    • Use cases
    • Quick links
  • features
    • Payloads and Datarates
    • Protocols
    • Configurations
    • Distances
    • Platforms supported
  • demo applications
    • TrillPlay
      • Specifications
    • TrillIoT
    • Knowles SmartMic
  • Knowles smartmic support
    • Trill SDK for Knowles
      • Requirements
      • Setup Guide
        • Licensing and Setting up Trillbit Host library
        • Authentication of the Trillbit IA61x algorithm
        • Sending Data to the SmartMic
      • Trillbit SDK Methods
      • Troubleshooting
  • android support
    • Trill SDK for Android
      • SDK Requirements
      • Setup Guide
        • Licensing credentials
        • Getting started
        • Integrating the SDK
          • Declare your app's audio permissions
          • Import SDK
          • Declare Trill SDK Callback
          • License and Initialise your Trill SDK
      • Methods and Callbacks
        • Sender methods
        • Receiver methods
        • Callbacks
      • Reducing application size
      • Troubleshooting
        • Error codes
  • ios support
    • Trill SDK for iOS
      • SDK Requirements
      • Setup Guide
        • Licensing Trill SDK
        • Getting started
      • Methods and Callbacks
        • Trill SDK Methods
        • Trill SDK Callbacks and delegates
      • Troubleshooting
  • esp 32 support
    • Trill SDK for ESP-32
      • Requirements
      • Platforms supported
      • Setup Guide
        • Licensing and Setting up Trillbit library
        • Sending data to the ESP32 device
      • Methods and Callbacks
      • Troubleshooting
  • embedded linux
    • Trill SDK for Embedded linux
      • Requirements
      • Architectures supported
      • Demo applications
      • Setup Guide
        • Licensing your Trill SDK
        • Compiling example binaries
        • Instantiate Trill SDK
        • Run the demo code
      • Methods and Callbacks
        • Trill SDK Methods
        • Callbacks
      • Troubleshooting
  • Reference
    • References
    • FAQs
Powered by GitBook
On this page
  1. ios support
  2. Trill SDK for iOS
  3. Methods and Callbacks

Trill SDK Callbacks and delegates

(void) onError: (int) error_code: (NSString*) errror;

The callback is triggered in case of any error. The callback returns back error code with the error

message as string.

(void) onInfo: (int) info_code: (NSString*) info;

The callback is triggered in the case when SDK needs to pass any information to the main

application. The callback returns back info code with the info message as string,

(void) onSDKReady;

The callback is triggered once SDK is initlised and ready to be used for sending and receiving

purpose.

(void) onPlayingCompleted;

The callback is triggered once SDK has completed playing, If the playing method is called with

repeat count 3 the callback will be received 3 times for every play completed

(void) onSendingCompleted;

The callback is triggered once SDK has completed the sending process If the playing method is

called with repeat count 3 the callback will be received when playing is completed for the 3rd time.

(void) onDecoded:(NSString*) payload;

The callback is triggered when SDK has received the TrillTone. Use the callback to receive decoded data on the main application.

PreviousTrill SDK MethodsNextTroubleshooting

Last updated 2 years ago