Skip to content
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

prebuiltiOSupdates #1899

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 41 additions & 22 deletions docs/get-started/v2/get-started/prebuilt/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ title: Quickstart
nav: 2.1
---


## Pre-requisites
## Prerequisites
<StepsContainer id="prerequisites">

### Set up a template
Expand Down Expand Up @@ -117,15 +116,14 @@ HMSPrebuilt uses [room code](/concepts/v2/concepts/rooms/room-codes/room-codes)
- `userName` - prefills the user name on HMSPrebuilt preview screen
- `userID` - use your user IDs to track user of your app

Sample code snippet to embed Prebuilt component. Head over for a step by step guides for [React](/javascript/v2/quickstart/prebuilt-quickstart), [Flutter](/flutter/v2/quickstart/prebuilt), [React Native](/react-native/v2/quickstart/prebuilt), [Android](/android/v2/quickstart/prebuilt-android).

Sample code snippet to embed Prebuilt component. Head over for a step by step guides for [React](/javascript/v2/quickstart/prebuilt-quickstart), [Android](/android/v2/quickstart/prebuilt-android), [iOS](https://www.100ms.live/docs/ios/v2/quickstart/prebuilt), [React Native](/react-native/v2/quickstart/prebuilt), [Flutter](/flutter/v2/quickstart/prebuilt).
<Tabs
id="sample-code"
items={["React", "Flutter", "React Native", "Android"]}
items={["React", "Android", "iOS", "Flutter", "React Native"]}
/>

<Tab id='sample-code-0'>
```jsx section=SampleCode tab=React
```jsx section=SampleCode sectionIndex=0 tab=React

// import HMSPrebuilt component from Roomkit package
import { HMSPrebuilt } from '@100mslive/roomkit-react';
Expand All @@ -144,7 +142,39 @@ function App() {
</Tab>

<Tab id='sample-code-1'>
```dart section=SampleCode tab=Flutter
```kotlin section=SampleCode sectionIndex=1 tab=Android

// add roomkit dependency in gradle file
implementation "live.100ms:room-kit:$roomKitVersion"

// import roomkit package
import live.hms.roomkit.ui.HMSRoomKit

// launch prebuilt from your activity or fragment
HMSRoomKit.launchPrebuilt(roomCode = "<room-code>", context = Activity)

```
</Tab>

<Tab id='sample-code-2'>
```swift section=SampleCode sectionIndex=2 tab=iOS
import SwiftUI
import HMSRoomKit

struct ContentView: View {
var body: some View {
HMSPrebuiltView(roomCode: /*pass room code as string here*/)
}
}

```
</Tab>




<Tab id='sample-code-3'>
```dart section=SampleCode sectionIndex=3 tab=Flutter

// import roomkit package
import 'package:hms_room_kit/hms_room_kit.dart';
Expand All @@ -154,9 +184,11 @@ HMSPrebuilt(roomCode: "<room-code>");
```
</Tab>

<Tab id='sample-code-2'>

```jsx section=SampleCode tab=React Native

<Tab id='sample-code-4'>

```jsx section=SampleCode sectionIndex=4 tab=React Native
// import roomkit package
import { HMSPrebuilt } from "@100mslive/react-native-room-kit";

Expand All @@ -168,19 +200,6 @@ const ConferencingScreen = () => {

</Tab>

<Tab id='sample-code-3'>
```kotlin section=SampleCode sectionIndex=2 tab=Android

// add roomkit dependency in gradle file
implementation "live.100ms:room-kit:$roomKitVersion"

// import roomkit package
import live.hms.roomkit.ui.HMSRoomKit

// launch prebuilt from your activity or fragment
HMSRoomKit.launchPrebuilt(roomCode = "<room-code>", context = Activity)

```
</Tab>

</StepsContainer>
1 change: 1 addition & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
Expand Down
Loading