Why Meta Quest?
Design
Develop
API references
Distribute
Blog
Support
Login
platform-android v71 Reference Guide
platform-android v71 Reference Guide
Unity
Select your SDK
Overview
com
meta
horizon
platform
ovr
ovr
Core
Error
Message
Message
MessageType
enums
enums
AccountAgeCategory
PlatformInitializeResult
ProductType
models
models
PlatformInitialize
Price
Product
ProductArray
Purchase
PurchaseArray
UserAccountAgeCategory
options
options
PlatformInitializeOptions
requests
requests
IAP
Request
Request
Handler
UserAgeCategory
Code samples
Downloads
Release notes
PlatformInitializeOptions Class
Options for initializing the platform.
Member Functions
boolean
isMessageQueueEnabled
( )
By default, this returns true.
Returns
true if the message queue will pop and handle messages at an interval; false if the consumer will be popping the messages manually
Duration
getMessageQueueIntervalDuration
( )
Use
setMessageQueueIntervalDuration(long, TimeUnit)
or
setMessageQueueIntervalDuration(Duration)
to set this value.
Returns
the duration of the interval at which the message queue will pop and handle messages. By default, this is 250 milliseconds.
PlatformInitializeOptions
disableMessageQueue
( )
Disable the message queue. Call this if you expect to manually pop messages from the queue.
See Also:
isMessageQueueEnabled()
Returns
the current instance of
PlatformInitializeOptions
PlatformInitializeOptions
enableMessageQueue
( )
Enable the message queue. By default, the message queue is already enabled.
See Also:
isMessageQueueEnabled()
Returns
the current instance of
PlatformInitializeOptions
PlatformInitializeOptions
setMessageQueueIntervalDuration
( Duration intervalDuration )
Set the duration of the interval at which the message queue will pop and handle messages.
Parameters
intervalDuration
the interval duration at which the message queue will pop and handle messages.
Returns
the current instance of
PlatformInitializeOptions
PlatformInitializeOptions
setMessageQueueIntervalDuration
( long durationAmount,
TimeUnit durationUnit )
Set the duration of the interval at which the message queue will pop and handle messages.
Parameters
durationAmount
the duration amount of the interval at which the message queue will pop and handle messages.
durationUnit
the TimeUnit corresponding to the durationAmount.
Returns
the current instance of
PlatformInitializeOptions
Did you find this page helpful?
Build with Meta
Social Technologies
Meta Horizon
AI
Horizon Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Ignition
Lifestyle Accelerator
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
Horizon Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Ignition
Lifestyle Accelerator
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
Horizon Worlds
About us
Careers
Research
Products
Virtual reality / Meta Horizon
Developer Blog
Download SDKs
Meta for Work
Programs
Start
Ignition
Lifestyle Accelerator
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)
©2024 Meta