Why Meta Quest?
Design
Develop
API reference
Distribute and grow
Blog
Support
API reference
API reference
Select your platform
No SDKs available
No versions available
Overview
AudioClipAudioSource
ImageViewer
Lib
Meta
Audio
Conduit
Net
Voice
WitAi
WitAi
ArrayNodeReference
Attributes
AudioDurationTracker
BaseSpeechService
CallbackHandlers
Comment
ComponentExtensions
Configuration
CoroutineUtility
Data
Dictation
Drawers
EditorUtilities
EnumerableExtensions
Events
ExportParser
ExportSaver
IExportParserPlugin
IRequest
ITelemetryEventsProvider
IVoiceActivationHandler
IVoiceEventProvider
IVoiceService
IWitRequestConfiguration
IWitRequestEndpointInfo
IWitRuntimeConfigProvider
IWitRuntimeConfigSetter
Inspectors
Interfaces
Json
Lib
MatchIntent
MatchIntentRegistry
ObjectNodeReference
PluggableBase
RegisteredMatchIntent
Requests
Requests
AudioStreamHandler
IRequestDownloadHandler
IVRequestStreamable
IWitInfoVRequest
IWitSyncVRequest
IWitVRequest
TextStreamHandler
VRequest
VoiceEventToRequestEventMapper
VoiceServiceMockRequest
VoiceServiceRequest
VoiceServiceRequestEvent
VoiceServiceRequestEvents
VoiceServiceRequestEventsWrapper
VoiceServiceRequestOptions
VoiceServiceRequestResults
WitInfoVRequest
WitMessageVRequest
WitResponseDecoder
WitSocketRequest
WitSyncVRequest
WitTTSVRequest
WitUnityRequest
WitVRequest
ServiceReferences
Speech
TTS
TaskUtility
ThreadUtility
TypeExtensions
UnityEventExtensions
UnityObjectExtensions
Utilities
VLog
ValidatePartialIntent
VoiceService
Windows
Wit
WitAppInfoUtility
WitAuthUtility
WitConduitParameterProvider
WitConfigurationEditorUI
WitConstants
WitEditorConstants
WitEditorUI
WitExportRetriever
WitRequest
WitRequestFactory
WitRequestSettings
WitResponseReference
WitResultUtilities
WitRuntimeRequestConfiguration
WitService
WitStyles
WitTexts
WrapHttpWebRequest
ZipArchiveExtensions
Oculus
Code samples
Downloads
Release notes
Supported platforms
Meta
TextStreamHandler Class
Extends
DownloadHandlerScript,
IRequestDownloadHandler
A download handler for UnityWebRequest that decodes text data as it is received and returns it via a partial response delegate.
Fields
const string
DEFAULT_PARTIAL_DELIMITER
[Get]
The default partial delimiter
const string
DEFAULT_FINAL_DELIMITER
[Get]
The default final delimiter
Properties
bool
IsComplete
[Get]
Whether or not complete
Member Functions
delegate void
TextStreamResponseDelegate
( string rawText )
The delegate for returning text from the text stream handler
TextStreamHandler
(
TextStreamResponseDelegate
partialResponseDelegate,
string partialDelimiter,
string finalDelimiter )
Protected Functions
override bool
ReceiveData
( byte [] receiveData,
int dataLength )
virtual void
HandlePartial
( string newPartial )
override string
GetText
( )
override void
ReceiveContentLengthHeader
( ulong contentLength )
override float
GetProgress
( )
override byte []
GetData
( )
override void
CompleteContent
( )
Static Member Functions
static string
DecodeBytes
( byte [] receiveData,
int start,
int length )
Simple decode method from bytes to text
Parameters
receiveData
The data received
start
The array start index
length
The amount of bytes in the data to convert
Returns
Returns decoded text
static int
GetDecodedLength
( ulong totalBits )
Gets the length of the string that should be created with the total amount of bits
Parameters
totalBits
The total amount of bits
Returns
Returns string length of decoded bytes
static string []
SplitText
( string source,
string delimiter )
Splits text with a string delimiter
Parameters
source
Original source text
delimiter
Delimiter to be split on
Returns
The source string split on the delimiter
Object Data for package-func
bool
ReceiveData
( byte [] receiveData )
void
Complete
( )
Build with Meta
Social Technologies
Meta Horizon
AI
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
Build with Meta
Social Technologies
Meta Horizon
AI
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
Build with Meta
Social Technologies
Meta Horizon
AI
Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Meta Horizon Creator Program
Discover
Why Meta Quest?
What is mixed reality?
Platforms and tools
2D apps for Meta Horizon OS
Devices
Meta Avatars
Success stories
Use cases
Support and legal
Developer policies
Legal
Privacy
Forums
Support
English (US)
© 2026 Meta