@microsoft/teams-js 2.0.0-beta.6-dev.4 → 2.0.0-beta.6-dev.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -261,6 +261,15 @@ export function registerCustomHandler(actionName: string, customHandler: (...arg
261
261
  * @internal
262
262
  */
263
263
  export function registerUserSettingsChangeHandler(settingTypes: UserSettingTypes[], handler: (settingType: UserSettingTypes, value: any) => void): void;
264
+ /**
265
+ * @hidden
266
+ * Hide from docs.
267
+ * ------
268
+ * Opens a client-friendly preview of the specified file.
269
+ *
270
+ * @param file - The file to preview.
271
+ */
272
+ export function openFilePreview(filePreviewParameters: FilePreviewParameters): void;
264
273
 
265
274
  /**
266
275
  * @hidden
@@ -379,8 +388,6 @@ export namespace conversations {
379
388
  * Hide from docs
380
389
  * ------
381
390
  * Namespace to interact with the files specific part of the SDK.
382
- *
383
- * @alpha
384
391
  */
385
392
  export namespace files {
386
393
  /**
@@ -439,6 +446,7 @@ export namespace files {
439
446
  * @hidden
440
447
  * Hide from docs
441
448
  * ------
449
+ *
442
450
  * Cloud storage folder interface
443
451
  */
444
452
  export interface CloudStorageFolder {
@@ -497,6 +505,7 @@ export namespace files {
497
505
  * @hidden
498
506
  * Hide from docs
499
507
  * ------
508
+ *
500
509
  * Cloud storage item interface
501
510
  */
502
511
  export interface CloudStorageFolderItem {
@@ -658,44 +667,51 @@ export namespace files {
658
667
  /**
659
668
  * @hidden
660
669
  * Hide from docs
661
- * ------
662
- * Gets a list of cloud storage folders added to the channel
663
670
  *
671
+ * Gets a list of cloud storage folders added to the channel
664
672
  * @param channelId - ID of the channel whose cloud storage folders should be retrieved
673
+ * @param callback - Callback that will be triggered post folders load
665
674
  */
666
- export function getCloudStorageFolders(channelId: string): Promise<CloudStorageFolder[]>;
675
+ export function getCloudStorageFolders(channelId: string, callback: (error: SdkError, folders: CloudStorageFolder[]) => void): void;
667
676
  /**
668
677
  * @hidden
669
678
  * Hide from docs
670
679
  * ------
671
680
  * Initiates the add cloud storage folder flow
681
+ *
672
682
  * @param channelId - ID of the channel to add cloud storage folder
683
+ * @param callback - Callback that will be triggered post add folder flow is compelete
673
684
  */
674
- export function addCloudStorageFolder(channelId: string): Promise<[boolean, CloudStorageFolder[]]>;
685
+ export function addCloudStorageFolder(channelId: string, callback: (error: SdkError, isFolderAdded: boolean, folders: CloudStorageFolder[]) => void): void;
675
686
  /**
676
687
  * @hidden
677
688
  * Hide from docs
678
689
  * ------
690
+ *
679
691
  * Deletes a cloud storage folder from channel
680
692
  *
681
693
  * @param channelId - ID of the channel where folder is to be deleted
682
694
  * @param folderToDelete - cloud storage folder to be deleted
695
+ * @param callback - Callback that will be triggered post delete
683
696
  */
684
- export function deleteCloudStorageFolder(channelId: string, folderToDelete: CloudStorageFolder): Promise<boolean>;
697
+ export function deleteCloudStorageFolder(channelId: string, folderToDelete: CloudStorageFolder, callback: (error: SdkError, isFolderDeleted: boolean) => void): void;
685
698
  /**
686
699
  * @hidden
687
700
  * Hide from docs
688
701
  * ------
702
+ *
689
703
  * Fetches the contents of a Cloud storage folder (CloudStorageFolder) / sub directory
690
704
  *
691
705
  * @param folder - Cloud storage folder (CloudStorageFolder) / sub directory (CloudStorageFolderItem)
692
706
  * @param providerCode - Code of the cloud storage folder provider
707
+ * @param callback - Callback that will be triggered post contents are loaded
693
708
  */
694
- export function getCloudStorageFolderContents(folder: CloudStorageFolder | CloudStorageFolderItem, providerCode: CloudStorageProvider): Promise<CloudStorageFolderItem[]>;
709
+ export function getCloudStorageFolderContents(folder: CloudStorageFolder | CloudStorageFolderItem, providerCode: CloudStorageProvider, callback: (error: SdkError, items: CloudStorageFolderItem[]) => void): void;
695
710
  /**
696
711
  * @hidden
697
712
  * Hide from docs
698
713
  * ------
714
+ *
699
715
  * Open a cloud storage file in teams
700
716
  *
701
717
  * @param file - cloud storage file that should be opened
@@ -703,15 +719,6 @@ export namespace files {
703
719
  * @param fileOpenPreference - Whether file should be opened in web/inline
704
720
  */
705
721
  export function openCloudStorageFile(file: CloudStorageFolderItem, providerCode: CloudStorageProvider, fileOpenPreference?: FileOpenPreference.Web | FileOpenPreference.Inline): void;
706
- /**
707
- * @hidden
708
- * Hide from docs.
709
- * ------
710
- * Opens a client-friendly preview of the specified file.
711
- *
712
- * @param file - The file to preview.
713
- */
714
- export function openFilePreview(filePreviewParameters: FilePreviewParameters): void;
715
722
  /**
716
723
  * @hidden
717
724
  * Allow 1st party apps to call this function to get the external
@@ -719,29 +726,18 @@ export namespace files {
719
726
  * @param excludeAddedProviders: return a list of support third party
720
727
  * cloud storages that hasn't been added yet.
721
728
  */
722
- export function getExternalProviders(excludeAddedProviders?: boolean): Promise<IExternalProvider[]>;
729
+ export function getExternalProviders(excludeAddedProviders: boolean, callback: (error: SdkError, providers: IExternalProvider[]) => void): void;
723
730
  /**
724
731
  * @hidden
725
732
  * Allow 1st party apps to call this function to move files
726
733
  * among SharePoint and third party cloud storages.
727
734
  */
728
- export function copyMoveFiles(selectedFiles: CloudStorageFolderItem[] | ISharePointFile[], providerCode: CloudStorageProvider, destinationFolder: CloudStorageFolderItem | ISharePointFile, destinationProviderCode: CloudStorageProvider, isMove?: boolean): Promise<void>;
729
- export function isSupported(): boolean;
735
+ export function copyMoveFiles(selectedFiles: CloudStorageFolderItem[] | ISharePointFile[], providerCode: CloudStorageProvider, destinationFolder: CloudStorageFolderItem | ISharePointFile, destinationProviderCode: CloudStorageProvider, isMove: boolean, callback: (error?: SdkError) => void): void;
730
736
  /**
731
737
  * @hidden
732
738
  * Hide from docs
733
- * ------
734
- * Gets list of downloads for current user
735
- * @param callback Callback that will be triggered post downloads load
736
- */
737
- export function getFileDownloads(): Promise<IFileItem[]>;
738
- /**
739
- * @hidden
740
- * Hide from docs
741
- * ------
739
+ * ------
742
740
  *
743
- * @deprecated
744
- * As of 2.0.0-beta.4, please use {@link file.getFileDownloads file.getFileDownloads(): Promise\<IFileItem[]\>} instead.
745
741
  * Gets list of downloads for current user
746
742
  * @param callback Callback that will be triggered post downloads load
747
743
  */
@@ -751,7 +747,7 @@ export namespace files {
751
747
  * Hide from docs
752
748
  *
753
749
  * Open download preference folder if fileObjectId value is undefined else open folder containing the file with id fileObjectId
754
- * @param fileObjectId Id of the file whose containing folder should be opened
750
+ * @param fileObjectId - Id of the file whose containing folder should be opened
755
751
  * @param callback Callback that will be triggered post open download folder/path
756
752
  */
757
753
  export function openDownloadFolder(fileObjectId: string, callback: (error?: SdkError) => void): void;
@@ -2924,6 +2920,24 @@ export namespace dialog {
2924
2920
  */
2925
2921
  function isSupported(): boolean;
2926
2922
  }
2923
+ /**
2924
+ * @hidden
2925
+ * Hide from docs
2926
+ * --------
2927
+ * Convert UrlDialogInfo to DialogInfo to send the information to host in {@linkcode open} API.
2928
+ *
2929
+ * @internal
2930
+ */
2931
+ function getDialogInfoFromUrlDialogInfo(urlDialogInfo: UrlDialogInfo): DialogInfo;
2932
+ /**
2933
+ * @hidden
2934
+ * Hide from docs
2935
+ * --------
2936
+ * Convert BotUrlDialogInfo to DialogInfo to send the information to host in {@linkcode bot.open} API.
2937
+ *
2938
+ * @internal
2939
+ */
2940
+ function getDialogInfoFromBotUrlDialogInfo(botUrlDialogInfo: BotUrlDialogInfo): DialogInfo;
2927
2941
  }
2928
2942
 
2929
2943
  /**
@@ -3947,7 +3961,8 @@ export namespace location {
3947
3961
  }
3948
3962
 
3949
3963
  /**
3950
- * @alpha
3964
+ * @deprecated
3965
+ * As of 2.0.0-beta.6, use meeting only for backwards compatibility of existing code.
3951
3966
  */
3952
3967
  export namespace meeting {
3953
3968
  /**
@@ -3957,12 +3972,12 @@ export namespace meeting {
3957
3972
  *
3958
3973
  * @internal
3959
3974
  */
3960
- interface IMeetingDetails {
3975
+ interface IMeetingDetailsResponse {
3961
3976
  /**
3962
3977
  * @hidden
3963
3978
  * details object
3964
3979
  */
3965
- details: IDetails;
3980
+ details: IMeetingDetails | ICallDetails;
3966
3981
  /**
3967
3982
  * @hidden
3968
3983
  * conversation object
@@ -3977,36 +3992,47 @@ export namespace meeting {
3977
3992
  /**
3978
3993
  * @hidden
3979
3994
  * Hide from docs
3980
- * Data structure to represent details.
3981
- *
3982
- * @internal
3995
+ * Base data structure to represent a meeting or call detail
3983
3996
  */
3984
- interface IDetails {
3997
+ interface IMeetingOrCallDetailsBase<T> {
3985
3998
  /**
3986
3999
  * @hidden
3987
- * Scheduled start time of the meeting
4000
+ * Scheduled start time of the meeting or start time of the call
3988
4001
  */
3989
4002
  scheduledStartTime: string;
3990
4003
  /**
3991
4004
  * @hidden
3992
- * Scheduled end time of the meeting
4005
+ * url to join the current meeting or call
3993
4006
  */
3994
- scheduledEndTime: string;
4007
+ joinUrl?: string;
3995
4008
  /**
3996
4009
  * @hidden
3997
- * url to join the current meeting
4010
+ * type of the meeting or call
3998
4011
  */
3999
- joinUrl?: string;
4012
+ type?: T;
4013
+ }
4014
+ /**
4015
+ * @hidden
4016
+ * Hide from docs
4017
+ * Data structure to represent call details
4018
+ */
4019
+ type ICallDetails = IMeetingOrCallDetailsBase<CallType>;
4020
+ /**
4021
+ * @hidden
4022
+ * Hide from docs
4023
+ * Data structure to represent meeting details.
4024
+ */
4025
+ interface IMeetingDetails extends IMeetingOrCallDetailsBase<MeetingType> {
4000
4026
  /**
4001
4027
  * @hidden
4002
- * meeting title name of the meeting
4028
+ * Scheduled end time of the meeting
4003
4029
  */
4004
- title?: string;
4030
+ scheduledEndTime: string;
4005
4031
  /**
4006
4032
  * @hidden
4007
- * type of the meeting
4033
+ * meeting title name of the meeting
4008
4034
  */
4009
- type?: MeetingType;
4035
+ title?: string;
4010
4036
  }
4011
4037
  /**
4012
4038
  * @hidden
@@ -4056,6 +4082,12 @@ export namespace meeting {
4056
4082
  message?: string;
4057
4083
  };
4058
4084
  }
4085
+ interface IAppContentStageSharingCapabilities {
4086
+ /**
4087
+ * indicates whether app has permission to share contents to meeting stage
4088
+ */
4089
+ doesAppHaveSharePermission: boolean;
4090
+ }
4059
4091
  interface IAppContentStageSharingState {
4060
4092
  /**
4061
4093
  * indicates whether app is currently being shared to stage
@@ -4069,12 +4101,6 @@ export namespace meeting {
4069
4101
  */
4070
4102
  isSpeakingDetected: boolean;
4071
4103
  }
4072
- interface IAppContentStageSharingCapabilities {
4073
- /**
4074
- * indicates whether app has permission to share contents to meeting stage
4075
- */
4076
- doesAppHaveSharePermission: boolean;
4077
- }
4078
4104
  enum MeetingType {
4079
4105
  Unknown = "Unknown",
4080
4106
  Adhoc = "Adhoc",
@@ -4083,41 +4109,28 @@ export namespace meeting {
4083
4109
  Broadcast = "Broadcast",
4084
4110
  MeetNow = "MeetNow"
4085
4111
  }
4086
- /**
4087
- * Allows an app to get the incoming audio speaker setting for the meeting user
4088
- *
4089
- * @remarks
4090
- * error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
4091
- * result can either contain the true/false value, incase of a successful fetch or null when the fetching fails
4092
- *
4093
- * @returns Promise result where true means incoming audio is muted and false means incoming audio is unmuted
4094
- */
4095
- function getIncomingClientAudioState(): Promise<boolean>;
4112
+ enum CallType {
4113
+ OneOnOneCall = "oneOnOneCall",
4114
+ GroupCall = "groupCall"
4115
+ }
4096
4116
  /**
4097
4117
  * @deprecated
4098
- * As of 2.0.0-beta.1, please use {@link meeting.getIncomingClientAudioState meeting.getIncomingClientAudioState(): Promise\<boolean\>} instead.
4118
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4099
4119
  *
4100
4120
  * Allows an app to get the incoming audio speaker setting for the meeting user
4101
4121
  *
4102
4122
  * @param callback - Callback contains 2 parameters, error and result.
4123
+ *
4103
4124
  * error can either contain an error of type SdkError, incase of an error, or null when fetch is successful
4104
4125
  * result can either contain the true/false value, incase of a successful fetch or null when the fetching fails
4105
4126
  * result: True means incoming audio is muted and false means incoming audio is unmuted
4106
4127
  */
4107
4128
  function getIncomingClientAudioState(callback: (error: SdkError | null, result: boolean | null) => void): void;
4108
- /**
4109
- * Allows an app to toggle the incoming audio speaker setting for the meeting user from mute to unmute or vice-versa
4110
- *
4111
- * @remarks
4112
- * error can either contain an error of type SdkError, incase of an error, or null when toggle is successful
4113
- * result can either contain the true/false value, incase of a successful toggle or null when the toggling fails
4114
- *
4115
- * @returns Promise result where true means incoming audio is muted and false means incoming audio is unmuted or rejected promise containing SdkError details
4116
- */
4117
- function toggleIncomingClientAudio(): Promise<boolean>;
4118
4129
  /**
4119
4130
  * @deprecated
4120
- * As of 2.0.0-beta.1, please use {@link meeting.toggleIncomingClientAudio meeting.toggleIncomingClientAudio(): Promise\<boolean\>} instead.
4131
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4132
+ *
4133
+ * Allows an app to toggle the incoming audio speaker setting for the meeting user from mute to unmute or vice-versa
4121
4134
  *
4122
4135
  * @param callback - Callback contains 2 parameters, error and result.
4123
4136
  * error can either contain an error of type SdkError, incase of an error, or null when toggle is successful
@@ -4125,50 +4138,29 @@ export namespace meeting {
4125
4138
  * result: True means incoming audio is muted and false means incoming audio is unmuted
4126
4139
  */
4127
4140
  function toggleIncomingClientAudio(callback: (error: SdkError | null, result: boolean | null) => void): void;
4128
- /**
4129
- * @hidden
4130
- * Hide from docs
4131
- *
4132
- * Allows an app to get the meeting details for the meeting
4133
- *
4134
- * @returns Promise containing the meeting details in IMeetingDetails form or rejected promise containing SdkError details
4135
- *
4136
- * @internal
4137
- */
4138
- function getMeetingDetails(): Promise<IMeetingDetails>;
4139
4141
  /**
4140
4142
  * @deprecated
4141
- * As of 2.0.0-beta.1, please use {@link meeting.getMeetingDetails meeting.getMeetingDetails(): Promise\<IMeetingDetails\>} instead.
4143
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4142
4144
  *
4143
4145
  * @hidden
4144
4146
  * Hide from docs
4145
4147
  *
4146
4148
  * Allows an app to get the meeting details for the meeting
4147
4149
  *
4148
- * @param callback - Callback contains 2 parameters, error and meetingDetails.
4150
+ * @param callback - Callback contains 2 parameters, error and meetingDetailsResponse.
4149
4151
  * error can either contain an error of type SdkError, incase of an error, or null when get is successful
4150
- * result can either contain a IMeetingDetails value, incase of a successful get or null when the get fails
4152
+ * result can either contain a IMeetingDetailsResponse value, incase of a successful get or null when the get fails
4151
4153
  *
4152
4154
  * @internal
4153
4155
  */
4154
- function getMeetingDetails(callback: (error: SdkError | null, meetingDetails: IMeetingDetails | null) => void): void;
4155
- /**
4156
- * @hidden
4157
- * Allows an app to get the authentication token for the anonymous or guest user in the meeting
4158
- *
4159
- * @returns Promise containing the token or rejected promise containing SdkError details
4160
- *
4161
- * @internal
4162
- */
4163
- function getAuthenticationTokenForAnonymousUser(): Promise<string>;
4156
+ function getMeetingDetails(callback: (error: SdkError | null, meetingDetails: IMeetingDetailsResponse | null) => void): void;
4164
4157
  /**
4165
4158
  * @deprecated
4166
- * As of 2.0.0-beta.1, please use {@link meeting.getAuthenticationTokenForAnonymousUser meeting.getAuthenticationTokenForAnonymousUser(): Promise\<string\>} instead.
4159
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4167
4160
  *
4168
4161
  * @hidden
4169
- * Hide from docs
4170
- *
4171
4162
  * Allows an app to get the authentication token for the anonymous or guest user in the meeting
4163
+ *
4172
4164
  * @param callback - Callback contains 2 parameters, error and authenticationTokenOfAnonymousUser.
4173
4165
  * error can either contain an error of type SdkError, incase of an error, or null when get is successful
4174
4166
  * authenticationTokenOfAnonymousUser can either contain a string value, incase of a successful get or null when the get fails
@@ -4176,16 +4168,9 @@ export namespace meeting {
4176
4168
  * @internal
4177
4169
  */
4178
4170
  function getAuthenticationTokenForAnonymousUser(callback: (error: SdkError | null, authenticationTokenOfAnonymousUser: string | null) => void): void;
4179
- function isSupported(): boolean;
4180
- /**
4181
- * Allows an app to get the state of the live stream in the current meeting
4182
- *
4183
- * @returns Promise containing the LiveStreamState value or rejected promise containing SdkError details
4184
- */
4185
- function getLiveStreamState(): Promise<LiveStreamState>;
4186
4171
  /**
4187
4172
  * @deprecated
4188
- * As of 2.0.0-beta.1, please use {@link meeting.getLiveStreamState meeting.getLiveStreamState(): Promise\<LiveStreamState\>} instead.
4173
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4189
4174
  *
4190
4175
  * Allows an app to get the state of the live stream in the current meeting
4191
4176
  *
@@ -4195,6 +4180,9 @@ export namespace meeting {
4195
4180
  */
4196
4181
  function getLiveStreamState(callback: (error: SdkError | null, liveStreamState: LiveStreamState | null) => void): void;
4197
4182
  /**
4183
+ * @deprecated
4184
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4185
+ *
4198
4186
  * Allows an app to request the live streaming be started at the given streaming url
4199
4187
  *
4200
4188
  * @remarks
@@ -4202,42 +4190,25 @@ export namespace meeting {
4202
4190
  *
4203
4191
  * @param streamUrl - the url to the stream resource
4204
4192
  * @param streamKey - the key to the stream resource
4205
- * @returns Promise that will be resolved when the operation has completed or rejected with SdkError value
4193
+ * @param callback - Callback contains error parameter which can be of type SdkError in case of an error, or null when operation is successful
4206
4194
  */
4207
- function requestStartLiveStreaming(streamUrl: string, streamKey?: string): Promise<void>;
4195
+ function requestStartLiveStreaming(callback: (error: SdkError | null) => void, streamUrl: string, streamKey?: string): void;
4208
4196
  /**
4209
4197
  * @deprecated
4210
- * As of 2.0.0-beta.1, please use {@link meeting.requestStartLiveStreaming meeting.requestStartLiveStreaming(streamUrl: string, streamKey?: string): Promise\<void\>} instead.
4211
- *
4212
- * Allows an app to request the live streaming be started at the given streaming url
4198
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4213
4199
  *
4214
- * @param streamUrl - The url to the stream resource
4215
- * @param streamKey - The key to the stream resource
4216
- * @param callback - Callback contains error parameter which can be of type SdkError in case of an error, or null when operation is successful
4217
- *
4218
- * Use getLiveStreamState or registerLiveStreamChangedHandler to get updates on the live stream state
4219
- */
4220
- function requestStartLiveStreaming(callback: (error: SdkError | null) => void, streamUrl: string, streamKey?: string): Promise<void>;
4221
- /**
4222
4200
  * Allows an app to request the live streaming be stopped at the given streaming url
4223
4201
  *
4224
4202
  * @remarks
4225
4203
  * Use getLiveStreamState or registerLiveStreamChangedHandler to get updates on the live stream state
4226
4204
  *
4227
- * @returns Promise that will be resolved when the operation has completed or rejected with SdkError value
4228
- */
4229
- function requestStopLiveStreaming(): Promise<void>;
4230
- /**
4231
- * @deprecated
4232
- * As of 2.0.0-beta.1, please use {@link meeting.requestStopLiveStreaming meeting.requestStopLiveStreaming(): Promise\<void\>} instead.
4233
- *
4234
- * Allows an app to request the live streaming be stopped at the given streaming url
4235
4205
  * @param callback - Callback contains error parameter which can be of type SdkError in case of an error, or null when operation is successful
4236
- *
4237
- * Use getLiveStreamState or registerLiveStreamChangedHandler to get updates on the live stream state
4238
4206
  */
4239
4207
  function requestStopLiveStreaming(callback: (error: SdkError | null) => void): void;
4240
4208
  /**
4209
+ * @deprecated
4210
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4211
+ *
4241
4212
  * Registers a handler for changes to the live stream.
4242
4213
  *
4243
4214
  * @remarks
@@ -4246,16 +4217,9 @@ export namespace meeting {
4246
4217
  * @param handler - The handler to invoke when the live stream state changes
4247
4218
  */
4248
4219
  function registerLiveStreamChangedHandler(handler: (liveStreamState: LiveStreamState) => void): void;
4249
- /**
4250
- * Allows an app to share contents in the meeting
4251
- *
4252
- * @param appContentUrl - appContentUrl is the input URL which needs to be shared on to the stage
4253
- * @returns Promise resolved indicating whether or not the share was successful or rejected with SdkError value
4254
- */
4255
- function shareAppContentToStage(appContentUrl: string): Promise<boolean>;
4256
4220
  /**
4257
4221
  * @deprecated
4258
- * As of 2.0.0-beta.1, please use {@link meeting.shareAppContentToStage meeting.shareAppContentToStage(appContentUrl: string): Promise\<boolean\>} instead.
4222
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4259
4223
  *
4260
4224
  * Allows an app to share contents in the meeting
4261
4225
  *
@@ -4265,17 +4229,11 @@ export namespace meeting {
4265
4229
  * @param appContentUrl - is the input URL which needs to be shared on to the stage
4266
4230
  */
4267
4231
  function shareAppContentToStage(callback: (error: SdkError | null, result: boolean | null) => void, appContentUrl: string): void;
4268
- /**
4269
- * Provides information related to app's in-meeting sharing capabilities
4270
- *
4271
- * @returns Promise resolved with sharing capability details or rejected with SdkError value
4272
- */
4273
- function getAppContentStageSharingCapabilities(): Promise<IAppContentStageSharingCapabilities>;
4274
4232
  /**
4275
4233
  * @deprecated
4276
- * As of 2.0.0-beta.1, please use {@link meeting.getAppContentStageSharingCapabilities meeting.getAppContentStageSharingCapabilities(): Promise\<IAppContentStageSharingCapabilities\>} instead.
4234
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4277
4235
  *
4278
- * Provides information related to app's in-meeting sharing capabilities
4236
+ * Provides information related app's in-meeting sharing capabilities
4279
4237
  *
4280
4238
  * @param callback - Callback contains 2 parameters, error and result.
4281
4239
  * error can either contain an error of type SdkError (error indication), or null (non-error indication)
@@ -4283,40 +4241,25 @@ export namespace meeting {
4283
4241
  * (indication of successful retrieval), or null (indication of failed retrieval)
4284
4242
  */
4285
4243
  function getAppContentStageSharingCapabilities(callback: (error: SdkError | null, appContentStageSharingCapabilities: IAppContentStageSharingCapabilities | null) => void): void;
4286
- /**
4287
- * @hidden
4288
- * Hide from docs.
4289
- * ------------------------------------------
4290
- * Terminates current stage sharing session in meeting
4291
- *
4292
- * @returns Promise resolved indicating whether or not sharing successfully stopped or rejected with SdkError value
4293
- */
4294
- function stopSharingAppContentToStage(): Promise<boolean>;
4295
4244
  /**
4296
4245
  * @deprecated
4297
- * As of 2.0.0-beta.1, please use {@link meeting.stopSharingAppContentToStage meeting.stopSharingAppContentToStage(): Promise\<boolean\>} instead.
4246
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4298
4247
  *
4299
4248
  * @hidden
4300
4249
  * Hide from docs.
4301
- * ------------------------------------------
4302
4250
  * Terminates current stage sharing session in meeting
4303
- * @param callback Callback contains 2 parameters, error and result.
4251
+ *
4252
+ * @param callback - Callback contains 2 parameters, error and result.
4304
4253
  * error can either contain an error of type SdkError (error indication), or null (non-error indication)
4305
4254
  * result can either contain a true boolean value (successful termination), or null (unsuccessful fetch)
4306
- * @internal
4307
4255
  */
4308
4256
  function stopSharingAppContentToStage(callback: (error: SdkError | null, result: boolean | null) => void): void;
4309
- /**
4310
- * Provides information related to current stage sharing state for app
4311
- *
4312
- * @returns Promise resolved to the App Content Stage Sharing State, or rejected with SdkError value
4313
- */
4314
- function getAppContentStageSharingState(): Promise<IAppContentStageSharingState>;
4315
4257
  /**
4316
4258
  * @deprecated
4317
- * As of 2.0.0-beta.1, please use {@link meeting.getAppContentStageSharingState meeting.getAppContentStageSharingState(): Promise\<IAppContentStageSharingState\>} instead.
4259
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4318
4260
  *
4319
4261
  * Provides information related to current stage sharing state for app
4262
+ *
4320
4263
  * @param callback - Callback contains 2 parameters, error and result.
4321
4264
  * error can either contain an error of type SdkError (error indication), or null (non-error indication)
4322
4265
  * appContentStageSharingState can either contain an IAppContentStageSharingState object
@@ -4324,9 +4267,13 @@ export namespace meeting {
4324
4267
  */
4325
4268
  function getAppContentStageSharingState(callback: (error: SdkError | null, appContentStageSharingState: IAppContentStageSharingState | null) => void): void;
4326
4269
  /**
4270
+ * @deprecated
4271
+ * As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
4272
+ *
4327
4273
  * Registers a handler for changes to paticipant speaking states. If any participant is speaking, isSpeakingDetected
4328
4274
  * will be true. If no participants are speaking, isSpeakingDetected will be false. Only one handler can be registered
4329
4275
  * at a time. A subsequent registration replaces an existing registration.
4276
+ *
4330
4277
  * @param handler The handler to invoke when the speaking state of any participant changes (start/stop speaking).
4331
4278
  */
4332
4279
  function registerSpeakingStateChangeHandler(handler: (speakingState: ISpeakingState) => void): void;