• Quick Start
  • Booting
  • Platform
  • Portals
  • References
    • API Reference TOI3
    • IIP Reference
  • Resources
ARRIS Enterprises, Inc. Confidential Information

TOI3 Constants

Constants in TOI3 work in a similar way to how they worked in TOI2/JS; you can always access a constant through the toi.consts object, and if you have an instance of the TOI type containing the constant, you can access it through the instance as well.

The only difference between TOI2/JS and TOI3 constants is that in TOI3, types under the toi.consts object expose not only their own constants, but also constants belonging to base types.

The following table shows how constants can be accessed in TOI3:

Expression Value

// Using a type under toi.consts:
toi.consts.ToiMediaPlayerBase.PACE_PLAY
1000

// Using a derived type under toi.consts:
toi.consts.ToiMediaPlayer.PACE_PLAY
1000

// Using a user-instantiated instance:
toi.mediaService.createPlayerInstance().PACE_PLAY
1000

// Using an implicitly instantiated service instance:
toi.informationService.STORAGE_VOLATILE
1

5.1.1.p8

Copyright (c) 2018 ARRIS Enterprises, LLC. All Rights Reserved. ARRIS Enterprises, LLC. Confidential Information.