-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #343 from dyte-io/MOB-1581-android-core-restructuring
feat: restructure android-core docs
- Loading branch information
Showing
47 changed files
with
1,304 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: Introduction | ||
sidebar_position: 3 | ||
sidebar_class_name: module-seperation | ||
--- | ||
|
||
import ProductSection from '/docs/partials/_product-section.mdx'; | ||
|
||
# Introduction | ||
|
||
The Dyte Core SDK is designed to provide you with an easy way to incorporate live video, voice, livestream and chat capabilities | ||
into your Android apps. The Core SDK acts as a data-only layer. It provides simple APIs offering high-level primitives and | ||
abstracting away complex media and networking optimizations. | ||
|
||
## Why Core SDK? | ||
|
||
The Core SDK was developed with a user-friendly approach to eliminate the complexity of managing streams. Unlike traditional | ||
SDKs that require knowledge of WebRTC functioning, Dyte's Core SDK provides a simple API that abstracts out the complexity, | ||
making it easier for developers to use. For instance, enabling video with Dyte's Core SDK is as easy as calling | ||
`meeting.localUser.enableVideo()`. | ||
|
||
## Utility Modules | ||
|
||
The Core SDK includes various modules for in-call utilities like chat, polls, and recording that enable building a UI on top of | ||
it. The following are the core SDK modules: | ||
|
||
- **meeting.localUser**: This consists of properties and methods corresponding to the current (local) user, such as enabling or | ||
disabling their audio and video, getting a list of media devices or changing the device, or sharing your mobile screen. | ||
- **meeting.participants**: Use this module to get useful information about the other participants that are present in the | ||
meeting. A host can use this module for access control. For example, the host can mute or kick a participant. | ||
- **meeting.chat**: It provides the methods to integrate chat features such as sending/receiving text, images, and files. | ||
- **meeting.polls**: Meetings can have polls. This module lets you perform actions related to polls, that is create and manage | ||
a poll within a meeting. | ||
- **meeting.recording**: When a meeting needs to be recorded, this module can be used. It lets you start or stop a recording, | ||
and get the current status of an ongoing recording. | ||
- **meeting.meta**: This object consists of all the metadata related to the current meeting, such as the title, the timestamp | ||
of when it started, and more. | ||
- **meeting.plugins**: Provides the list of available plugins and active plugins. Use this module to enable or disable plugins as needed. | ||
|
||
<head> | ||
<title>Android Core Introduction</title> | ||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"position": 6, | ||
"position": 8, | ||
"label": "Chat", | ||
"collapsible": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: System Error Codes | ||
sidebar_position: 99 | ||
--- | ||
|
||
:::info Note | ||
|
||
This information is intended for developers debugging or troubleshooting Dyte's mobile core system errors. | ||
|
||
::: | ||
|
||
Error codes are a standardized method for developers to convey application errors and issues to users or other developers in a structured manner. Error codes typically consist of a numerical or alphanumeric code and a description that provides more information about the error. | ||
|
||
This document lists Dyte's Android core error codes that you may encounter in various scenarios. System error codes can arise in different parts of the system, and their descriptions may not always provide exact details. To address these codes effectively, you must first understand the programmatic and runtime contexts in which these errors occurred. | ||
|
||
## Error codes and format | ||
|
||
Error codes consist of a number that are categorized by the type of error and a message that provides more information about the error. The error code format is as follows: | ||
|
||
```kotlin | ||
class DyteError(val code: Int, val message: String) | ||
``` | ||
|
||
### Meeting error codes | ||
|
||
Meeting error codes are used to indicate errors that occur during meeting operations. These errors are typically returned by the methods of the `meeting` object such as `init()`, `join()`. | ||
|
||
- 1000: Invalid auth token. | ||
- 1002: Failed to initialize meeting. | ||
- 1003: Invalid base URL. | ||
- 1005: Failed to join room. | ||
- 4000: Something went wrong. | ||
|
||
<head> | ||
<title>Android Core System Error Codes</title> | ||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"position": 7, | ||
"position": 10, | ||
"label": "Livestream", | ||
"collapsible": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"position": 3, | ||
"position": 6, | ||
"label": "Local User", | ||
"collapsible": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"position": 4, | ||
"label": "Participants", | ||
"position": 7, | ||
"label": "Remote Participants", | ||
"collapsible": true | ||
} |
Oops, something went wrong.