IVSStage
Objective-C
@interface IVSStage : NSObject <IVSErrorSource>
                Swift
class IVSStage : NSObject, IVSErrorSource
                The main interaction point for interacting with the Stage SDK.
- 
                  
                  
Creates an
IVSStagewith the provided token.Note
The
IVSStageholds a weak reference to theIVSStageStrategyobject.Declaration
Objective-C
- (nullable instancetype)initWithToken:(nonnull NSString *)token strategy:(nonnull id<IVSStageStrategy>)strategy error:(NSError *_Nullable *_Nullable)outError;Parameters
tokenA token acquired by the IVS control plane, used to connect to a Stage.
strategyThe strategy used by this stage to make decisions. See
IVSStageStrategyfor more information.outErrorOn input, a pointer to an error object. If an error occurs, the pointer is an NSError object that describes the error. If you don’t want error information, pass in nil.
 - 
                  
                  
Joins the Stage associated with the token provided during initialization.
Declaration
Objective-C
- (BOOL)joinWithError:(NSError *_Nullable *_Nullable)outError;Swift
func join() throwsParameters
outErrorOn input, a pointer to an error object. If an error occurs, the pointer is an NSError object that describes the error. If you don’t want error information, pass in nil.
 - 
                  
                  
Leave the current Stage
Declaration
Objective-C
- (void)leave;Swift
func leave() - 
                  
                  
Adds a renderer to the list of renderers that will be notified of updates to the Stage.
Declaration
Objective-C
- (void)addRenderer:(nonnull id<IVSStageRenderer>)renderer;Parameters
rendererThe renderer to add.
 - 
                  
                  
Removes a renderer to the list of renderers that will be notified of updates to the Stage.
Declaration
Objective-C
- (void)removeRenderer:(nonnull id<IVSStageRenderer>)renderer;Parameters
rendererThe renderer to remove.
 - 
                  
                  
Asynchronously sets the strategy used by this
IVSStage. SeeIVSStageStrategyfor more information.Note
The
IVSStageholds a weak reference to theIVSStageStrategyobject.Declaration
Objective-C
- (void)replaceStrategy:(nonnull id<IVSStageStrategy>)strategy;Parameters
strategyThe new strategy to use with the Stage.
 - 
                  
                  
Triggers the
IVSStageStrategyon this instance to refresh its state. This is how host applications will make changes to how they are interacting with a Stage.Declaration
Objective-C
- (void)refreshStrategy;Swift
func refreshStrategy() 
        IVSStage Class Reference