-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Teams mobile doc improvements #2154
base: main
Are you sure you want to change the base?
Changes from all commits
950edcb
16da13a
53e78bf
ab1c6ff
e07f063
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Clarified mobile usage in documentation for `app`, `barCode`, `media`, `meeting`, and `teamsAPIs` capabilities.", | ||
"packageName": "@microsoft/teams-js", | ||
"email": "joshuapa@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -814,6 +814,10 @@ export namespace app { | |
|
||
/** | ||
* Notifies the frame that app has loaded and to hide the loading indicator if one is shown. | ||
* | ||
* @remarks | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should these remarks be specifically on the |
||
* For information about mobile behavior, see the [Content pages](https://learn.microsoft.com/microsoftteams/platform/tabs/how-to/create-tab-pages/content-page?tabs=teamsjs-v2#show-a-native-loading-indicator) article. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What should we expect developers to see when they go to that URL? Here is where I think I would be confused: is that page telling me that... I shouldn't call methods like I think the answer is "No, your app should always call these methods and you don't need to write special code, but just know that the loading indicator behavior may be different on mobile." Is that correct? If so it's not totally clear from these comments or that doc page. |
||
* | ||
*/ | ||
export function notifyAppLoaded(): void { | ||
ensureInitializeCalled(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,12 @@ export namespace barCode { | |
/** | ||
* Checks whether or not media has user permission | ||
* | ||
* @returns true if the user has granted the app permission to media information, false otherwise | ||
* @remarks | ||
* For additional information about deivce permissions, see the Learn articles: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it be more appropriate if this documentation was on the |
||
* - [Integrate QR or barcode scanner capability](https://learn.microsoft.com/microsoftteams/platform/concepts/device-capabilities/qr-barcode-scanner-capability) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Following this link takes me to a page which provides great information about barcode scanning -- but that page then links to a function in the older (1.x) version of teamsjs and a different capability than this one (it links to |
||
* - [Request device permissions for your Teams app](https://learn.microsoft.com/microsoftteams/platform/concepts/device-capabilities/native-device-permissions?tabs=mobile%2Cteamsjs-v2%2Cmobile1#specify-permissions) | ||
* | ||
* @returns `true` if the user has granted the app permission to media information, `false` otherwise. The **media** permission refers to both camera and gallery. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
* | ||
* @beta | ||
*/ | ||
|
@@ -88,7 +93,12 @@ export namespace barCode { | |
/** | ||
* Requests user permission for media | ||
* | ||
* @returns true if the user has granted the app permission to the media, false otherwise | ||
* @remarks | ||
* For additional information about deivce permissions, see the Learn articles: | ||
* - [Integrate QR or barcode scanner capability](https://learn.microsoft.com/microsoftteams/platform/concepts/device-capabilities/qr-barcode-scanner-capability) | ||
* - [Request device permissions for your Teams app](https://learn.microsoft.com/microsoftteams/platform/concepts/device-capabilities/native-device-permissions?tabs=mobile%2Cteamsjs-v2%2Cmobile1#specify-permissions) | ||
* | ||
* @returns `true` if the user has granted the app permission to the media, `false` otherwise. The **media** permission refers to both camera and gallery. | ||
* | ||
* @beta | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -756,6 +756,9 @@ export namespace media { | |
/** | ||
* Select an attachment using camera/gallery | ||
* | ||
* @remarks | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
* For additional details about media capabilities, see the [Integrate media capabilities](https://learn.microsoft.com/microsoftteams/platform/concepts/device-capabilities/media-capabilities) article. | ||
* | ||
* @param mediaInputs - The input params to customize the media to be selected | ||
* @param callback - The callback to invoke after fetching the media | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be type "none" since the docs only changes won't affect the behavior of the library at all.