LogoLogo
  • Introduction
    • 🚀 Welcome to Datagram
    • What is Datagram?
  • Alpha Testnet
    • What Is Alpha Testnet?
    • Getting Started with the Alpha Testnet
  • Rewards
    • Datagram Rewards System
    • Datagram Points (Alpha Testnet Rewards)
    • DGRAM Token (Mainnet Rewards)
  • Datagram Architecture
    • Datagram Architecture Overview
    • Node Network
    • Fabric Networks
    • Datagram Core Substrate (DCS)
    • The Hyper Network Layer
  • DATAGRAM DESKTOP APPLICATION GUIDE
    • Datagram Desktop Application User Guide
    • Create a Datagram Account
    • Home Screen Guide
  • SETUP DATAGRAM
    • Desktop Application Setup
      • Mac (Silicon, Intel)
      • Windows
    • Partner Substrate Setup
      • Local Machine (Ubuntu/Linux)
      • VPS Servers
  • APIs
    • Get an API Key
  • SDKs
    • Video Conferencing
      • Web (external)
      • iOS (external)
  • Additional Tools
    • CLI (Command Line Interface)
    • Node License Tools
      • Desktop (Full Core License required)
      • Partner Substrate (Partner Core License required)
  • Documentation
    • Whitepaper
      • 1. Introduction & Project Overview
      • 2. Why Blockchain?
      • 3. Datagram Architecture
        • 3.1. The Datagram Node Network & Fabric Networks
        • 3.2. Datagram Core Substrate DCS: The Connectivity Layer
        • 3.3. The Hyper Network Layer
      • 4. Datagram in Action: Real-World Applications & Adoption
        • 4.1. Key Use Cases
        • 4.2. The Datagram Browser
        • 4.3. Business Implementation
      • 5. Tokenomics
        • 5.1. Tri-Token Model
        • 5.2. Supply & Distribution
      • 6. Datagram Rewards & Emissions Model
        • 6.1. Checkpoints
        • 6.2. Emissions Formula
      • 7. Datagram Governance
        • 7.1. Overview
        • 7.2. Voting Process
        • 7.3. Proposal Lifecycle
        • 7.4. Governance Dashboard
      • 8. Datagram Team
      • 9. Conclusion
  • EXTERNAL LINKS
  • Website
  • Dashboard
  • FAQs
  • Blog
  • Discord
  • X
  • Telegram
Powered by GitBook
On this page
  • Installation Guide
  • Usage
  • Import the Framework
  • Load Conference Info
  • Join Conference (with built-in GUI)
  1. SDKs
  2. Video Conferencing

iOS (external)

PreviousWeb (external)NextCLI (Command Line Interface)

Last updated 2 days ago

The DatagramConferenceFramework is an iOS SDK that allows you to integrate conference functionality into your app. It supports retrieving conference information and joining conferences using either a URL or an alias, with built-in GUI support.

Installation Guide

Step 1: Navigate to the and download the entire repository.

Step 2: Inside the downloaded files, open the lib folder. Copy the file DatagramConferenceFramework.framework into your Xcode project directory.

Step 3: Open your project in Xcode.

Step 4: In Build Settings, search for Framework Search Paths and add the path to the folder where the framework is located.

Step 5: Go to the General tab of your project settings. Under Frameworks, Libraries, and Embedded Content, change the embed option for the framework to "Embed & Sign".

Step 6: Open your app's Info.plistfile and add camera and microphone usage descriptions. These are required—if they’re missing, your app will crash when accessing audio/video.

Step 7: To allow conference calls to continue while the app is in the background, enable background modes:

  • Go to the Signing & Capabilities tab.

  • Add Background Modes.

  • Enable the Voice over IP option.

Usage

Import the Framework

Add this line at the top of your Swift file:

import DatagramConferenceFramework

Load Conference Info

Use the following method to fetch conference details using a URL or an alias:

Objective-C Signature:

+ (void)getConferenceInfo:(NSString *_Nullable)url
                    Alias:(NSString *_Nullable)alias
              completion:(void(^)(NSDictionary<NSString *,id> * _Nullable result))resultBlock;

What It Does:

  • Retrieves details about a conference using either its URL or alias.

  • If valid, the result will contain

    • name: name of the conference

    • alias: same as input

    • expiredAt: timestamp when the conference expires

  • If there's an error, the error key will indicate either "InvalidUrl" or "NotFound."

Swift Example:

ConferenceSDK.getConferenceInfo(nil, alias: alias) { [weak self] result in
    guard let self = self else { return }

    if let validResult = result {
        NSLog("validResult = %@", validResult)

        if let aliasText = alias, text.count > aliasText.count, qrcodeDict.count < 3 {
            self.joinLinkTextField.text = alias
            self.joinLinkPrefixLabel.text = JoinLinkPrefixText
            self.layoutPrefixView()
        }

        if let resultAlias = validResult["alias"] as? String, !resultAlias.isEmpty {
            self.showAliasDetail(info: validResult)
        } else {
            let notFoundError = "Event not found. Please try again"
            self.showLinkError(errorString: notFoundError)
        }
    }
}

Join Conference (with built-in GUI)

Use this method to join a conference via alias or URL:

Objective-C Signature:

+ (void)joinConference:(NSString *_Nullable)url
                Alias:(NSString *_Nullable)alias
                  Name:(NSString *_Nullable)name
            completion:(void(^)(NSDictionary<NSString *,id> * _Nullable result))resultBlock;

What It Does:

  • Joins a conference using the given URL or alias.

  • On success, no result is returned.

  • On failure, the result will contain an "error" key with either "InvalidUrl" or "NotFound."

Swift Example:

if resultAlias != nil {
    ConferenceSDK.joinConference(nil, alias: resultAlias, name: "SDK-Demo") { joinResult in
        // Handle result if needed
    }
}
Datagram Conference SDK GitHub repository