Sharing API
Quick Start
import RundotGameAPI from '@series-inc/rundot-game-sdk/api'
const { shareUrl } = await RundotGameAPI.social.shareLinkAsync({
shareParams: {
challengeType: 'highscore',
scoreToBeat: '1500',
challengerId: RundotGameAPI.getProfile().id,
},
metadata: {
title: 'Beat my score!',
description: 'Can you top 1500 points?',
imageUrl: 'https://cdn.example.com/share-highscore.png',
},
})
console.log('Shared link:', shareUrl)QR Codes
Interpreting shareParams on Game Start
API Reference
Method
Returns
Description
Payload Guidelines
Best Practices
Last updated