UNPKG

agora-react-native-rtm

Version:

React Native around the Agora RTM SDKs for Android and iOS agora

109 lines (102 loc) 2.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TopicOptions = exports.RtmMessageQos = exports.RtmMessagePriority = exports.JoinTopicOptions = exports.JoinChannelOptions = exports.IStreamChannel = void 0; /// Generated by terra, DO NOT MODIFY BY HAND. /** * The qos of rtm message. */ let RtmMessageQos = exports.RtmMessageQos = /*#__PURE__*/function (RtmMessageQos) { RtmMessageQos[RtmMessageQos["unordered"] = 0] = "unordered"; RtmMessageQos[RtmMessageQos["ordered"] = 1] = "ordered"; return RtmMessageQos; }({}); /** * The priority of rtm message. */ let RtmMessagePriority = exports.RtmMessagePriority = /*#__PURE__*/function (RtmMessagePriority) { RtmMessagePriority[RtmMessagePriority["highest"] = 0] = "highest"; RtmMessagePriority[RtmMessagePriority["high"] = 1] = "high"; RtmMessagePriority[RtmMessagePriority["normal"] = 4] = "normal"; RtmMessagePriority[RtmMessagePriority["low"] = 8] = "low"; return RtmMessagePriority; }({}); /** * Join channel options. */ class JoinChannelOptions { /** * Token used to join channel. */ /** * Whether to subscribe channel metadata information */ withMetadata = false; /** * Whether to subscribe channel with user presence */ withPresence = true; /** * Whether to subscribe channel with lock */ withLock = false; /** * Whether to join channel in quiet mode * Quiet mode means remote user will not receive any notification when we join or * leave or change our presence state */ beQuiet = false; constructor(props) { Object.assign(this, props); } } /** * Join topic options. */ exports.JoinChannelOptions = JoinChannelOptions; class JoinTopicOptions { /** * The qos of rtm message. */ qos = RtmMessageQos.unordered; /** * The priority of rtm message. */ priority = RtmMessagePriority.normal; /** * The metaData of topic. */ /** * The rtm data will sync with media */ syncWithMedia = false; constructor(props) { Object.assign(this, props); } } /** * Topic options. */ exports.JoinTopicOptions = JoinTopicOptions; class TopicOptions { /** * The list of users to subscribe. */ /** * The number of users. */ userCount = 0; constructor(props) { Object.assign(this, props); } } /** * The IStreamChannel class. * * This class provides the stream channel methods that can be invoked by your app. */ exports.TopicOptions = TopicOptions; class IStreamChannel {} exports.IStreamChannel = IStreamChannel; //# sourceMappingURL=IAgoraStreamChannel.js.map