@microsoft/teams-js 2.0.0-beta.6-dev.14 → 2.0.0-beta.6-dev.17
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.
package/dist/MicrosoftTeams.d.ts
CHANGED
@@ -3409,10 +3409,6 @@ export namespace menus {
|
|
3409
3409
|
function isSupported(): boolean;
|
3410
3410
|
}
|
3411
3411
|
|
3412
|
-
/**
|
3413
|
-
* @deprecated
|
3414
|
-
* As of 2.0.0-beta.6, use media only for backwards compatibility of existing code.
|
3415
|
-
*/
|
3416
3412
|
export namespace media {
|
3417
3413
|
/**
|
3418
3414
|
* Enum for file formats supported
|
@@ -3449,9 +3445,6 @@ export namespace media {
|
|
3449
3445
|
name?: string;
|
3450
3446
|
}
|
3451
3447
|
/**
|
3452
|
-
* @deprecated
|
3453
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
3454
|
-
*
|
3455
3448
|
* Launch camera, capture image or choose image from gallery and return the images as a File[] object to the callback.
|
3456
3449
|
*
|
3457
3450
|
* @params callback - Callback will be called with an @see SdkError if there are any.
|
@@ -3737,9 +3730,6 @@ export namespace media {
|
|
3737
3730
|
file: Blob;
|
3738
3731
|
}
|
3739
3732
|
/**
|
3740
|
-
* @deprecated
|
3741
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
3742
|
-
*
|
3743
3733
|
* Select an attachment using camera/gallery
|
3744
3734
|
*
|
3745
3735
|
* @param mediaInputs - The input params to customize the media to be selected
|
@@ -3747,10 +3737,8 @@ export namespace media {
|
|
3747
3737
|
*/
|
3748
3738
|
export function selectMedia(mediaInputs: MediaInputs, callback: (error: SdkError, attachments: Media[]) => void): void;
|
3749
3739
|
/**
|
3750
|
-
* @deprecated
|
3751
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
3752
|
-
*
|
3753
3740
|
* View images using native image viewer
|
3741
|
+
*
|
3754
3742
|
* @param uriList - list of URIs for images to be viewed - can be content URI or server URL. Supports up to 10 Images in a single call
|
3755
3743
|
* @param callback - returns back error if encountered, returns null in case of success
|
3756
3744
|
*/
|
@@ -3767,10 +3755,8 @@ export namespace media {
|
|
3767
3755
|
timeOutIntervalInSec?: number;
|
3768
3756
|
}
|
3769
3757
|
/**
|
3770
|
-
* @deprecated
|
3771
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
3772
|
-
*
|
3773
3758
|
* Scan Barcode/QRcode using camera
|
3759
|
+
*
|
3774
3760
|
* @remarks
|
3775
3761
|
* Note: For desktop and web, this API is not supported. Callback will be resolved with ErrorCode.NotSupported.
|
3776
3762
|
*
|
@@ -3848,10 +3834,6 @@ export namespace location {
|
|
3848
3834
|
function isSupported(): boolean;
|
3849
3835
|
}
|
3850
3836
|
|
3851
|
-
/**
|
3852
|
-
* @deprecated
|
3853
|
-
* As of 2.0.0-beta.6, use meeting only for backwards compatibility of existing code.
|
3854
|
-
*/
|
3855
3837
|
export namespace meeting {
|
3856
3838
|
/**
|
3857
3839
|
* @hidden
|
@@ -4002,9 +3984,6 @@ export namespace meeting {
|
|
4002
3984
|
GroupCall = "groupCall"
|
4003
3985
|
}
|
4004
3986
|
/**
|
4005
|
-
* @deprecated
|
4006
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
4007
|
-
*
|
4008
3987
|
* Allows an app to get the incoming audio speaker setting for the meeting user
|
4009
3988
|
*
|
4010
3989
|
* @param callback - Callback contains 2 parameters, error and result.
|
@@ -4015,9 +3994,6 @@ export namespace meeting {
|
|
4015
3994
|
*/
|
4016
3995
|
function getIncomingClientAudioState(callback: (error: SdkError | null, result: boolean | null) => void): void;
|
4017
3996
|
/**
|
4018
|
-
* @deprecated
|
4019
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
4020
|
-
*
|
4021
3997
|
* Allows an app to toggle the incoming audio speaker setting for the meeting user from mute to unmute or vice-versa
|
4022
3998
|
*
|
4023
3999
|
* @param callback - Callback contains 2 parameters, error and result.
|
@@ -4027,9 +4003,6 @@ export namespace meeting {
|
|
4027
4003
|
*/
|
4028
4004
|
function toggleIncomingClientAudio(callback: (error: SdkError | null, result: boolean | null) => void): void;
|
4029
4005
|
/**
|
4030
|
-
* @deprecated
|
4031
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
4032
|
-
*
|
4033
4006
|
* @hidden
|
4034
4007
|
* Hide from docs
|
4035
4008
|
*
|
@@ -4043,9 +4016,6 @@ export namespace meeting {
|
|
4043
4016
|
*/
|
4044
4017
|
function getMeetingDetails(callback: (error: SdkError | null, meetingDetails: IMeetingDetailsResponse | null) => void): void;
|
4045
4018
|
/**
|
4046
|
-
* @deprecated
|
4047
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
4048
|
-
*
|
4049
4019
|
* @hidden
|
4050
4020
|
* Allows an app to get the authentication token for the anonymous or guest user in the meeting
|
4051
4021
|
*
|
@@ -4057,9 +4027,6 @@ export namespace meeting {
|
|
4057
4027
|
*/
|
4058
4028
|
function getAuthenticationTokenForAnonymousUser(callback: (error: SdkError | null, authenticationTokenOfAnonymousUser: string | null) => void): void;
|
4059
4029
|
/**
|
4060
|
-
* @deprecated
|
4061
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
4062
|
-
*
|
4063
4030
|
* Allows an app to get the state of the live stream in the current meeting
|
4064
4031
|
*
|
4065
4032
|
* @param callback - Callback contains 2 parameters: error and liveStreamState.
|
@@ -4068,9 +4035,6 @@ export namespace meeting {
|
|
4068
4035
|
*/
|
4069
4036
|
function getLiveStreamState(callback: (error: SdkError | null, liveStreamState: LiveStreamState | null) => void): void;
|
4070
4037
|
/**
|
4071
|
-
* @deprecated
|
4072
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
4073
|
-
*
|
4074
4038
|
* Allows an app to request the live streaming be started at the given streaming url
|
4075
4039
|
*
|
4076
4040
|
* @remarks
|
@@ -4082,9 +4046,6 @@ export namespace meeting {
|
|
4082
4046
|
*/
|
4083
4047
|
function requestStartLiveStreaming(callback: (error: SdkError | null) => void, streamUrl: string, streamKey?: string): void;
|
4084
4048
|
/**
|
4085
|
-
* @deprecated
|
4086
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
4087
|
-
*
|
4088
4049
|
* Allows an app to request the live streaming be stopped at the given streaming url
|
4089
4050
|
*
|
4090
4051
|
* @remarks
|
@@ -4094,9 +4055,6 @@ export namespace meeting {
|
|
4094
4055
|
*/
|
4095
4056
|
function requestStopLiveStreaming(callback: (error: SdkError | null) => void): void;
|
4096
4057
|
/**
|
4097
|
-
* @deprecated
|
4098
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
4099
|
-
*
|
4100
4058
|
* Registers a handler for changes to the live stream.
|
4101
4059
|
*
|
4102
4060
|
* @remarks
|
@@ -4106,9 +4064,6 @@ export namespace meeting {
|
|
4106
4064
|
*/
|
4107
4065
|
function registerLiveStreamChangedHandler(handler: (liveStreamState: LiveStreamState) => void): void;
|
4108
4066
|
/**
|
4109
|
-
* @deprecated
|
4110
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
4111
|
-
*
|
4112
4067
|
* Allows an app to share contents in the meeting
|
4113
4068
|
*
|
4114
4069
|
* @param callback - Callback contains 2 parameters, error and result.
|
@@ -4118,9 +4073,6 @@ export namespace meeting {
|
|
4118
4073
|
*/
|
4119
4074
|
function shareAppContentToStage(callback: (error: SdkError | null, result: boolean | null) => void, appContentUrl: string): void;
|
4120
4075
|
/**
|
4121
|
-
* @deprecated
|
4122
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
4123
|
-
*
|
4124
4076
|
* Provides information related app's in-meeting sharing capabilities
|
4125
4077
|
*
|
4126
4078
|
* @param callback - Callback contains 2 parameters, error and result.
|
@@ -4130,9 +4082,6 @@ export namespace meeting {
|
|
4130
4082
|
*/
|
4131
4083
|
function getAppContentStageSharingCapabilities(callback: (error: SdkError | null, appContentStageSharingCapabilities: IAppContentStageSharingCapabilities | null) => void): void;
|
4132
4084
|
/**
|
4133
|
-
* @deprecated
|
4134
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
4135
|
-
*
|
4136
4085
|
* @hidden
|
4137
4086
|
* Hide from docs.
|
4138
4087
|
* Terminates current stage sharing session in meeting
|
@@ -4143,9 +4092,6 @@ export namespace meeting {
|
|
4143
4092
|
*/
|
4144
4093
|
function stopSharingAppContentToStage(callback: (error: SdkError | null, result: boolean | null) => void): void;
|
4145
4094
|
/**
|
4146
|
-
* @deprecated
|
4147
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
4148
|
-
*
|
4149
4095
|
* Provides information related to current stage sharing state for app
|
4150
4096
|
*
|
4151
4097
|
* @param callback - Callback contains 2 parameters, error and result.
|
@@ -4155,9 +4101,6 @@ export namespace meeting {
|
|
4155
4101
|
*/
|
4156
4102
|
function getAppContentStageSharingState(callback: (error: SdkError | null, appContentStageSharingState: IAppContentStageSharingState | null) => void): void;
|
4157
4103
|
/**
|
4158
|
-
* @deprecated
|
4159
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
4160
|
-
*
|
4161
4104
|
* Registers a handler for changes to paticipant speaking states. If any participant is speaking, isSpeakingDetected
|
4162
4105
|
* will be true. If no participants are speaking, isSpeakingDetected will be false. Only one handler can be registered
|
4163
4106
|
* at a time. A subsequent registration replaces an existing registration.
|
package/dist/MicrosoftTeams.js
CHANGED
@@ -1122,7 +1122,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1122
1122
|
});
|
1123
1123
|
|
1124
1124
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
1125
|
-
var version = "2.0.0-beta.6-dev.
|
1125
|
+
var version = "2.0.0-beta.6-dev.17";
|
1126
1126
|
/**
|
1127
1127
|
* @hidden
|
1128
1128
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
@@ -2781,6 +2781,7 @@ var dialog;
|
|
2781
2781
|
|
2782
2782
|
|
2783
2783
|
|
2784
|
+
|
2784
2785
|
/**
|
2785
2786
|
* Namespace to interact with the menu-specific part of the SDK.
|
2786
2787
|
* This object is used to show View Configuration, Action Menu and Navigation Bar Menu.
|
@@ -2851,6 +2852,9 @@ var menus;
|
|
2851
2852
|
*/
|
2852
2853
|
function setUpViews(viewConfig, handler) {
|
2853
2854
|
ensureInitialized();
|
2855
|
+
if (!isSupported()) {
|
2856
|
+
throw errorNotSupportedOnPlatform;
|
2857
|
+
}
|
2854
2858
|
viewConfigItemPressHandler = handler;
|
2855
2859
|
sendMessageToParent('setUpViews', [viewConfig]);
|
2856
2860
|
}
|
@@ -2870,6 +2874,9 @@ var menus;
|
|
2870
2874
|
*/
|
2871
2875
|
function setNavBarMenu(items, handler) {
|
2872
2876
|
ensureInitialized();
|
2877
|
+
if (!isSupported()) {
|
2878
|
+
throw errorNotSupportedOnPlatform;
|
2879
|
+
}
|
2873
2880
|
navBarMenuItemPressHandler = handler;
|
2874
2881
|
sendMessageToParent('setNavBarMenu', [items]);
|
2875
2882
|
}
|
@@ -2889,6 +2896,9 @@ var menus;
|
|
2889
2896
|
*/
|
2890
2897
|
function showActionMenu(params, handler) {
|
2891
2898
|
ensureInitialized();
|
2899
|
+
if (!isSupported()) {
|
2900
|
+
throw errorNotSupportedOnPlatform;
|
2901
|
+
}
|
2892
2902
|
actionMenuItemPressHandler = handler;
|
2893
2903
|
sendMessageToParent('showActionMenu', [params]);
|
2894
2904
|
}
|
@@ -3370,6 +3380,9 @@ var pages;
|
|
3370
3380
|
*/
|
3371
3381
|
function returnFocus(navigateForward) {
|
3372
3382
|
ensureInitialized();
|
3383
|
+
if (!isSupported()) {
|
3384
|
+
throw errorNotSupportedOnPlatform;
|
3385
|
+
}
|
3373
3386
|
sendMessageToParent('returnFocus', [navigateForward]);
|
3374
3387
|
}
|
3375
3388
|
pages.returnFocus = returnFocus;
|
@@ -3383,11 +3396,17 @@ var pages;
|
|
3383
3396
|
*/
|
3384
3397
|
function registerFocusEnterHandler(handler) {
|
3385
3398
|
ensureInitialized();
|
3399
|
+
if (!isSupported()) {
|
3400
|
+
throw errorNotSupportedOnPlatform;
|
3401
|
+
}
|
3386
3402
|
registerHandler('focusEnter', handler);
|
3387
3403
|
}
|
3388
3404
|
pages.registerFocusEnterHandler = registerFocusEnterHandler;
|
3389
3405
|
function setCurrentFrame(frameInfo) {
|
3390
3406
|
ensureInitialized(FrameContexts.content);
|
3407
|
+
if (!isSupported()) {
|
3408
|
+
throw errorNotSupportedOnPlatform;
|
3409
|
+
}
|
3391
3410
|
sendMessageToParent('setFrameContext', [frameInfo]);
|
3392
3411
|
}
|
3393
3412
|
pages.setCurrentFrame = setCurrentFrame;
|
@@ -3403,6 +3422,9 @@ var pages;
|
|
3403
3422
|
function getConfig() {
|
3404
3423
|
return new Promise(function (resolve) {
|
3405
3424
|
ensureInitialized(FrameContexts.content, FrameContexts.settings, FrameContexts.remove, FrameContexts.sidePanel);
|
3425
|
+
if (!isSupported()) {
|
3426
|
+
throw errorNotSupportedOnPlatform;
|
3427
|
+
}
|
3406
3428
|
resolve(sendAndUnwrap('settings.getSettings'));
|
3407
3429
|
});
|
3408
3430
|
}
|
@@ -3419,6 +3441,9 @@ var pages;
|
|
3419
3441
|
function navigateCrossDomain(url) {
|
3420
3442
|
return new Promise(function (resolve) {
|
3421
3443
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.remove, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
3444
|
+
if (!isSupported()) {
|
3445
|
+
throw errorNotSupportedOnPlatform;
|
3446
|
+
}
|
3422
3447
|
var errorMessage = 'Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.';
|
3423
3448
|
resolve(sendAndHandleStatusAndReasonWithDefaultError('navigateCrossDomain', errorMessage, url));
|
3424
3449
|
});
|
@@ -3436,6 +3461,9 @@ var pages;
|
|
3436
3461
|
function navigateToApp(params) {
|
3437
3462
|
return new Promise(function (resolve) {
|
3438
3463
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
3464
|
+
if (!isSupported()) {
|
3465
|
+
throw errorNotSupportedOnPlatform;
|
3466
|
+
}
|
3439
3467
|
if (runtime.isLegacyTeams) {
|
3440
3468
|
resolve(sendAndHandleStatusAndReason('executeDeepLink', createTeamsAppLink(params)));
|
3441
3469
|
}
|
@@ -3452,6 +3480,9 @@ var pages;
|
|
3452
3480
|
*/
|
3453
3481
|
function shareDeepLink(deepLinkParameters) {
|
3454
3482
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.meetingStage);
|
3483
|
+
if (!isSupported()) {
|
3484
|
+
throw errorNotSupportedOnPlatform;
|
3485
|
+
}
|
3455
3486
|
sendMessageToParent('shareDeepLink', [
|
3456
3487
|
deepLinkParameters.subPageId,
|
3457
3488
|
deepLinkParameters.subPageLabel,
|
@@ -3466,6 +3497,9 @@ var pages;
|
|
3466
3497
|
*/
|
3467
3498
|
function registerFullScreenHandler(handler) {
|
3468
3499
|
ensureInitialized();
|
3500
|
+
if (!isSupported()) {
|
3501
|
+
throw errorNotSupportedOnPlatform;
|
3502
|
+
}
|
3469
3503
|
registerHandler('fullScreenChange', handler);
|
3470
3504
|
}
|
3471
3505
|
pages.registerFullScreenHandler = registerFullScreenHandler;
|
@@ -3489,6 +3523,9 @@ var pages;
|
|
3489
3523
|
function navigateToTab(tabInstance) {
|
3490
3524
|
return new Promise(function (resolve) {
|
3491
3525
|
ensureInitialized();
|
3526
|
+
if (!isSupported()) {
|
3527
|
+
throw errorNotSupportedOnPlatform;
|
3528
|
+
}
|
3492
3529
|
var errorMessage = 'Invalid internalTabInstanceId and/or channelId were/was provided';
|
3493
3530
|
resolve(sendAndHandleStatusAndReasonWithDefaultError('navigateToTab', errorMessage, tabInstance));
|
3494
3531
|
});
|
@@ -3503,6 +3540,9 @@ var pages;
|
|
3503
3540
|
function getTabInstances(tabInstanceParameters) {
|
3504
3541
|
return new Promise(function (resolve) {
|
3505
3542
|
ensureInitialized();
|
3543
|
+
if (!isSupported()) {
|
3544
|
+
throw errorNotSupportedOnPlatform;
|
3545
|
+
}
|
3506
3546
|
resolve(sendAndUnwrap('getTabInstances', tabInstanceParameters));
|
3507
3547
|
});
|
3508
3548
|
}
|
@@ -3515,6 +3555,9 @@ var pages;
|
|
3515
3555
|
function getMruTabInstances(tabInstanceParameters) {
|
3516
3556
|
return new Promise(function (resolve) {
|
3517
3557
|
ensureInitialized();
|
3558
|
+
if (!isSupported()) {
|
3559
|
+
throw errorNotSupportedOnPlatform;
|
3560
|
+
}
|
3518
3561
|
resolve(sendAndUnwrap('getMruTabInstances', tabInstanceParameters));
|
3519
3562
|
});
|
3520
3563
|
}
|
@@ -3547,6 +3590,9 @@ var pages;
|
|
3547
3590
|
*/
|
3548
3591
|
function setValidityState(validityState) {
|
3549
3592
|
ensureInitialized(FrameContexts.settings, FrameContexts.remove);
|
3593
|
+
if (!isSupported()) {
|
3594
|
+
throw errorNotSupportedOnPlatform;
|
3595
|
+
}
|
3550
3596
|
sendMessageToParent('settings.setValidityState', [validityState]);
|
3551
3597
|
}
|
3552
3598
|
config.setValidityState = setValidityState;
|
@@ -3559,6 +3605,9 @@ var pages;
|
|
3559
3605
|
function setConfig(instanceConfig) {
|
3560
3606
|
return new Promise(function (resolve) {
|
3561
3607
|
ensureInitialized(FrameContexts.content, FrameContexts.settings, FrameContexts.sidePanel);
|
3608
|
+
if (!isSupported()) {
|
3609
|
+
throw errorNotSupportedOnPlatform;
|
3610
|
+
}
|
3562
3611
|
resolve(sendAndHandleStatusAndReason('settings.setSettings', instanceConfig));
|
3563
3612
|
});
|
3564
3613
|
}
|
@@ -3572,6 +3621,9 @@ var pages;
|
|
3572
3621
|
*/
|
3573
3622
|
function registerOnSaveHandler(handler) {
|
3574
3623
|
ensureInitialized(FrameContexts.settings);
|
3624
|
+
if (!isSupported()) {
|
3625
|
+
throw errorNotSupportedOnPlatform;
|
3626
|
+
}
|
3575
3627
|
saveHandler = handler;
|
3576
3628
|
handler && sendMessageToParent('registerHandler', ['save']);
|
3577
3629
|
}
|
@@ -3585,6 +3637,9 @@ var pages;
|
|
3585
3637
|
*/
|
3586
3638
|
function registerOnRemoveHandler(handler) {
|
3587
3639
|
ensureInitialized(FrameContexts.remove, FrameContexts.settings);
|
3640
|
+
if (!isSupported()) {
|
3641
|
+
throw errorNotSupportedOnPlatform;
|
3642
|
+
}
|
3588
3643
|
removeHandler = handler;
|
3589
3644
|
handler && sendMessageToParent('registerHandler', ['remove']);
|
3590
3645
|
}
|
@@ -3605,6 +3660,9 @@ var pages;
|
|
3605
3660
|
*/
|
3606
3661
|
function registerChangeConfigHandler(handler) {
|
3607
3662
|
ensureInitialized(FrameContexts.content);
|
3663
|
+
if (!isSupported()) {
|
3664
|
+
throw errorNotSupportedOnPlatform;
|
3665
|
+
}
|
3608
3666
|
registerHandler('changeSettings', handler);
|
3609
3667
|
}
|
3610
3668
|
config.registerChangeConfigHandler = registerChangeConfigHandler;
|
@@ -3695,6 +3753,9 @@ var pages;
|
|
3695
3753
|
function navigateBack() {
|
3696
3754
|
return new Promise(function (resolve) {
|
3697
3755
|
ensureInitialized();
|
3756
|
+
if (!isSupported()) {
|
3757
|
+
throw errorNotSupportedOnPlatform;
|
3758
|
+
}
|
3698
3759
|
var errorMessage = 'Back navigation is not supported in the current client or context.';
|
3699
3760
|
resolve(sendAndHandleStatusAndReasonWithDefaultError('navigateBack', errorMessage));
|
3700
3761
|
});
|
@@ -3708,6 +3769,10 @@ var pages;
|
|
3708
3769
|
* @param handler The handler to invoke when the user presses their Team client's back button.
|
3709
3770
|
*/
|
3710
3771
|
function registerBackButtonHandler(handler) {
|
3772
|
+
ensureInitialized();
|
3773
|
+
if (!isSupported()) {
|
3774
|
+
throw errorNotSupportedOnPlatform;
|
3775
|
+
}
|
3711
3776
|
backButtonPressHandler = handler;
|
3712
3777
|
handler && sendMessageToParent('registerHandler', ['backButton']);
|
3713
3778
|
}
|
@@ -3735,6 +3800,9 @@ var pages;
|
|
3735
3800
|
*/
|
3736
3801
|
function enterFullscreen() {
|
3737
3802
|
ensureInitialized(FrameContexts.content);
|
3803
|
+
if (!isSupported()) {
|
3804
|
+
throw errorNotSupportedOnPlatform;
|
3805
|
+
}
|
3738
3806
|
sendMessageToParent('enterFullscreen', []);
|
3739
3807
|
}
|
3740
3808
|
fullTrust.enterFullscreen = enterFullscreen;
|
@@ -3746,6 +3814,9 @@ var pages;
|
|
3746
3814
|
*/
|
3747
3815
|
function exitFullscreen() {
|
3748
3816
|
ensureInitialized(FrameContexts.content);
|
3817
|
+
if (!isSupported()) {
|
3818
|
+
throw errorNotSupportedOnPlatform;
|
3819
|
+
}
|
3749
3820
|
sendMessageToParent('exitFullscreen', []);
|
3750
3821
|
}
|
3751
3822
|
fullTrust.exitFullscreen = exitFullscreen;
|
@@ -3769,6 +3840,9 @@ var pages;
|
|
3769
3840
|
*/
|
3770
3841
|
function onClick(handler) {
|
3771
3842
|
ensureInitialized(FrameContexts.content);
|
3843
|
+
if (!isSupported()) {
|
3844
|
+
throw errorNotSupportedOnPlatform;
|
3845
|
+
}
|
3772
3846
|
registerHandler('appButtonClick', handler);
|
3773
3847
|
}
|
3774
3848
|
appButton.onClick = onClick;
|
@@ -3779,6 +3853,9 @@ var pages;
|
|
3779
3853
|
*/
|
3780
3854
|
function onHoverEnter(handler) {
|
3781
3855
|
ensureInitialized(FrameContexts.content);
|
3856
|
+
if (!isSupported()) {
|
3857
|
+
throw errorNotSupportedOnPlatform;
|
3858
|
+
}
|
3782
3859
|
registerHandler('appButtonHoverEnter', handler);
|
3783
3860
|
}
|
3784
3861
|
appButton.onHoverEnter = onHoverEnter;
|
@@ -3789,6 +3866,9 @@ var pages;
|
|
3789
3866
|
*/
|
3790
3867
|
function onHoverLeave(handler) {
|
3791
3868
|
ensureInitialized(FrameContexts.content);
|
3869
|
+
if (!isSupported()) {
|
3870
|
+
throw errorNotSupportedOnPlatform;
|
3871
|
+
}
|
3792
3872
|
registerHandler('appButtonHoverLeave', handler);
|
3793
3873
|
}
|
3794
3874
|
appButton.onHoverLeave = onHoverLeave;
|
@@ -5040,10 +5120,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
5040
5120
|
|
5041
5121
|
|
5042
5122
|
|
5043
|
-
/**
|
5044
|
-
* @deprecated
|
5045
|
-
* As of 2.0.0-beta.6, use media only for backwards compatibility of existing code.
|
5046
|
-
*/
|
5047
5123
|
var media;
|
5048
5124
|
(function (media) {
|
5049
5125
|
/**
|
@@ -5064,9 +5140,6 @@ var media;
|
|
5064
5140
|
}());
|
5065
5141
|
media.File = File;
|
5066
5142
|
/**
|
5067
|
-
* @deprecated
|
5068
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5069
|
-
*
|
5070
5143
|
* Launch camera, capture image or choose image from gallery and return the images as a File[] object to the callback.
|
5071
5144
|
*
|
5072
5145
|
* @params callback - Callback will be called with an @see SdkError if there are any.
|
@@ -5343,9 +5416,6 @@ var media;
|
|
5343
5416
|
ImageOutputFormats[ImageOutputFormats["PDF"] = 2] = "PDF";
|
5344
5417
|
})(ImageOutputFormats = media.ImageOutputFormats || (media.ImageOutputFormats = {}));
|
5345
5418
|
/**
|
5346
|
-
* @deprecated
|
5347
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5348
|
-
*
|
5349
5419
|
* Select an attachment using camera/gallery
|
5350
5420
|
*
|
5351
5421
|
* @param mediaInputs - The input params to customize the media to be selected
|
@@ -5398,10 +5468,8 @@ var media;
|
|
5398
5468
|
}
|
5399
5469
|
media.selectMedia = selectMedia;
|
5400
5470
|
/**
|
5401
|
-
* @deprecated
|
5402
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5403
|
-
*
|
5404
5471
|
* View images using native image viewer
|
5472
|
+
*
|
5405
5473
|
* @param uriList - list of URIs for images to be viewed - can be content URI or server URL. Supports up to 10 Images in a single call
|
5406
5474
|
* @param callback - returns back error if encountered, returns null in case of success
|
5407
5475
|
*/
|
@@ -5425,10 +5493,8 @@ var media;
|
|
5425
5493
|
}
|
5426
5494
|
media.viewImages = viewImages;
|
5427
5495
|
/**
|
5428
|
-
* @deprecated
|
5429
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5430
|
-
*
|
5431
5496
|
* Scan Barcode/QRcode using camera
|
5497
|
+
*
|
5432
5498
|
* @remarks
|
5433
5499
|
* Note: For desktop and web, this API is not supported. Callback will be resolved with ErrorCode.NotSupported.
|
5434
5500
|
*
|
@@ -5526,10 +5592,6 @@ var location_location;
|
|
5526
5592
|
|
5527
5593
|
|
5528
5594
|
|
5529
|
-
/**
|
5530
|
-
* @deprecated
|
5531
|
-
* As of 2.0.0-beta.6, use meeting only for backwards compatibility of existing code.
|
5532
|
-
*/
|
5533
5595
|
var meeting;
|
5534
5596
|
(function (meeting) {
|
5535
5597
|
var MeetingType;
|
@@ -5547,9 +5609,6 @@ var meeting;
|
|
5547
5609
|
CallType["GroupCall"] = "groupCall";
|
5548
5610
|
})(CallType = meeting.CallType || (meeting.CallType = {}));
|
5549
5611
|
/**
|
5550
|
-
* @deprecated
|
5551
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5552
|
-
*
|
5553
5612
|
* Allows an app to get the incoming audio speaker setting for the meeting user
|
5554
5613
|
*
|
5555
5614
|
* @param callback - Callback contains 2 parameters, error and result.
|
@@ -5567,9 +5626,6 @@ var meeting;
|
|
5567
5626
|
}
|
5568
5627
|
meeting.getIncomingClientAudioState = getIncomingClientAudioState;
|
5569
5628
|
/**
|
5570
|
-
* @deprecated
|
5571
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5572
|
-
*
|
5573
5629
|
* Allows an app to toggle the incoming audio speaker setting for the meeting user from mute to unmute or vice-versa
|
5574
5630
|
*
|
5575
5631
|
* @param callback - Callback contains 2 parameters, error and result.
|
@@ -5586,9 +5642,6 @@ var meeting;
|
|
5586
5642
|
}
|
5587
5643
|
meeting.toggleIncomingClientAudio = toggleIncomingClientAudio;
|
5588
5644
|
/**
|
5589
|
-
* @deprecated
|
5590
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5591
|
-
*
|
5592
5645
|
* @hidden
|
5593
5646
|
* Hide from docs
|
5594
5647
|
*
|
@@ -5609,9 +5662,6 @@ var meeting;
|
|
5609
5662
|
}
|
5610
5663
|
meeting.getMeetingDetails = getMeetingDetails;
|
5611
5664
|
/**
|
5612
|
-
* @deprecated
|
5613
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5614
|
-
*
|
5615
5665
|
* @hidden
|
5616
5666
|
* Allows an app to get the authentication token for the anonymous or guest user in the meeting
|
5617
5667
|
*
|
@@ -5630,9 +5680,6 @@ var meeting;
|
|
5630
5680
|
}
|
5631
5681
|
meeting.getAuthenticationTokenForAnonymousUser = getAuthenticationTokenForAnonymousUser;
|
5632
5682
|
/**
|
5633
|
-
* @deprecated
|
5634
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5635
|
-
*
|
5636
5683
|
* Allows an app to get the state of the live stream in the current meeting
|
5637
5684
|
*
|
5638
5685
|
* @param callback - Callback contains 2 parameters: error and liveStreamState.
|
@@ -5648,9 +5695,6 @@ var meeting;
|
|
5648
5695
|
}
|
5649
5696
|
meeting.getLiveStreamState = getLiveStreamState;
|
5650
5697
|
/**
|
5651
|
-
* @deprecated
|
5652
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5653
|
-
*
|
5654
5698
|
* Allows an app to request the live streaming be started at the given streaming url
|
5655
5699
|
*
|
5656
5700
|
* @remarks
|
@@ -5669,9 +5713,6 @@ var meeting;
|
|
5669
5713
|
}
|
5670
5714
|
meeting.requestStartLiveStreaming = requestStartLiveStreaming;
|
5671
5715
|
/**
|
5672
|
-
* @deprecated
|
5673
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5674
|
-
*
|
5675
5716
|
* Allows an app to request the live streaming be stopped at the given streaming url
|
5676
5717
|
*
|
5677
5718
|
* @remarks
|
@@ -5688,9 +5729,6 @@ var meeting;
|
|
5688
5729
|
}
|
5689
5730
|
meeting.requestStopLiveStreaming = requestStopLiveStreaming;
|
5690
5731
|
/**
|
5691
|
-
* @deprecated
|
5692
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5693
|
-
*
|
5694
5732
|
* Registers a handler for changes to the live stream.
|
5695
5733
|
*
|
5696
5734
|
* @remarks
|
@@ -5707,9 +5745,6 @@ var meeting;
|
|
5707
5745
|
}
|
5708
5746
|
meeting.registerLiveStreamChangedHandler = registerLiveStreamChangedHandler;
|
5709
5747
|
/**
|
5710
|
-
* @deprecated
|
5711
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5712
|
-
*
|
5713
5748
|
* Allows an app to share contents in the meeting
|
5714
5749
|
*
|
5715
5750
|
* @param callback - Callback contains 2 parameters, error and result.
|
@@ -5726,9 +5761,6 @@ var meeting;
|
|
5726
5761
|
}
|
5727
5762
|
meeting.shareAppContentToStage = shareAppContentToStage;
|
5728
5763
|
/**
|
5729
|
-
* @deprecated
|
5730
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5731
|
-
*
|
5732
5764
|
* Provides information related app's in-meeting sharing capabilities
|
5733
5765
|
*
|
5734
5766
|
* @param callback - Callback contains 2 parameters, error and result.
|
@@ -5745,9 +5777,6 @@ var meeting;
|
|
5745
5777
|
}
|
5746
5778
|
meeting.getAppContentStageSharingCapabilities = getAppContentStageSharingCapabilities;
|
5747
5779
|
/**
|
5748
|
-
* @deprecated
|
5749
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5750
|
-
*
|
5751
5780
|
* @hidden
|
5752
5781
|
* Hide from docs.
|
5753
5782
|
* Terminates current stage sharing session in meeting
|
@@ -5765,9 +5794,6 @@ var meeting;
|
|
5765
5794
|
}
|
5766
5795
|
meeting.stopSharingAppContentToStage = stopSharingAppContentToStage;
|
5767
5796
|
/**
|
5768
|
-
* @deprecated
|
5769
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5770
|
-
*
|
5771
5797
|
* Provides information related to current stage sharing state for app
|
5772
5798
|
*
|
5773
5799
|
* @param callback - Callback contains 2 parameters, error and result.
|
@@ -5784,9 +5810,6 @@ var meeting;
|
|
5784
5810
|
}
|
5785
5811
|
meeting.getAppContentStageSharingState = getAppContentStageSharingState;
|
5786
5812
|
/**
|
5787
|
-
* @deprecated
|
5788
|
-
* As of 2.0.0-beta.6, use only for backwards compatibility of existing code.
|
5789
|
-
*
|
5790
5813
|
* Registers a handler for changes to paticipant speaking states. If any participant is speaking, isSpeakingDetected
|
5791
5814
|
* will be true. If no participants are speaking, isSpeakingDetected will be false. Only one handler can be registered
|
5792
5815
|
* at a time. A subsequent registration replaces an existing registration.
|
@@ -5832,6 +5855,9 @@ var monetization;
|
|
5832
5855
|
}
|
5833
5856
|
var wrappedFunction = function () {
|
5834
5857
|
return new Promise(function (resolve) {
|
5858
|
+
if (!isSupported()) {
|
5859
|
+
throw errorNotSupportedOnPlatform;
|
5860
|
+
}
|
5835
5861
|
resolve(sendAndHandleSdkError('monetization.openPurchaseExperience', planInfo));
|
5836
5862
|
});
|
5837
5863
|
};
|
@@ -7795,6 +7821,9 @@ var teams;
|
|
7795
7821
|
*/
|
7796
7822
|
function getTeamChannels(groupId, callback) {
|
7797
7823
|
ensureInitialized(FrameContexts.content);
|
7824
|
+
if (!isSupported()) {
|
7825
|
+
throw errorNotSupportedOnPlatform;
|
7826
|
+
}
|
7798
7827
|
if (!groupId) {
|
7799
7828
|
throw new Error('[teams.getTeamChannels] groupId cannot be null or empty');
|
7800
7829
|
}
|
@@ -7814,6 +7843,9 @@ var teams;
|
|
7814
7843
|
*/
|
7815
7844
|
function refreshSiteUrl(threadId, callback) {
|
7816
7845
|
ensureInitialized();
|
7846
|
+
if (!isSupported()) {
|
7847
|
+
throw errorNotSupportedOnPlatform;
|
7848
|
+
}
|
7817
7849
|
if (!threadId) {
|
7818
7850
|
throw new Error('[teams.refreshSiteUrl] threadId cannot be null or empty');
|
7819
7851
|
}
|