Agora RTC Objective-C API Reference  Refactor
Properties
AgoraMusicContentCenterConfig Class Reference

Inherits <NSObject>.

Properties

AgoraRtcEngineKit *_Nullable rtcEngine
 
NSString * appId
 
NSString * token
 
NSInteger mccUid
 
NSUInteger maxCacheSize
 
NSString * mccDomain
 
id< AgoraMusicContentCenterEventDelegateeventDelegate
 

Property Documentation

◆ rtcEngine

- (AgoraRtcEngineKit* _Nullable) rtcEngine
readwritenonatomicassign

AgoraRtcEngineKit instance.

◆ appId

- (NSString*) appId
readwritenonatomiccopy

The App ID of the project with content center enabled.

◆ token

- (NSString*) token
readwritenonatomiccopy

The RTM Token used for authentication when using the music content center.

Note
  • Agora recommends that you use AccessToken2 for authentication. See Deploy Token Server for details. When generating the Token, pass the String type mccUid to the uid parameter.
  • When your Token is about to expire, you can call renewToken: to pass in a new Token.

◆ mccUid

- (NSInteger) mccUid
readwritenonatomicassign

Uses the user ID for the music content center. This ID can be the same as the uid you use to join an RTC channel, but it cannot be 0.

◆ maxCacheSize

- (NSUInteger) maxCacheSize
readwritenonatomicassign

The number of cacheable music resources must not exceed 50.

◆ mccDomain

- (NSString*) mccDomain
readwritenonatomiccopy

@technical preview

◆ eventDelegate

- (id<AgoraMusicContentCenterEventDelegate>) eventDelegate
readwritenonatomicweak

Event handler to get callback result.