Skip to content

Instantly share code, notes, and snippets.

@digitallysavvy
Created December 3, 2019 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitallysavvy/0c78ccf776757cd6fab6f68c90703695 to your computer and use it in GitHub Desktop.
Save digitallysavvy/0c78ccf776757cd6fab6f68c90703695 to your computer and use it in GitHub Desktop.
Snippet for sendTouchPoints within the ARSupportAudienceViewController
func sendTouchPoints() {
let pointsAsString: String = self.dataPointsArray.description
self.agoraKit.sendStreamMessage(self.dataStreamId, data: pointsAsString.data(using: String.Encoding.ascii)!)
self.dataPointsArray = []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment