Property | Type | Description | |
---|---|---|---|
SDKVersion | string |
Method | Description | |
---|---|---|
authStatusString ( AuthStatus authStatus ) : string |
Return the string value of an AuthStatus value.
|
|
popupFeedPost ( string objectInstanceId, object>.Dictionary |
||
postAchievement ( string achievementId, CarrotRequestResponse callback = null ) : void |
Post an achievement to Carrot.
|
|
postAction ( string actionId, IDictionary actionProperties, ViralObject viralObject, CarrotRequestResponse callback = null ) : void |
Sends an Open Graph action which will create a new object.
|
|
postAction ( string actionId, IDictionary actionProperties, string objectInstanceId, CarrotRequestResponse callback = null ) : void |
Sends an Open Graph action which will use an existing object.
|
|
postAction ( string actionId, ViralObject viralObject, CarrotRequestResponse callback = null ) : void |
Sends an Open Graph action which will create a new object.
|
|
postAction ( string actionId, string objectInstanceId, CarrotRequestResponse callback = null ) : void |
Sends an Open Graph action which will use an existing object.
|
|
postHighScore ( uint score, CarrotRequestResponse callback = null ) : void |
Post a high score to Carrot.
|
|
postPremiumCurrencyPurchase ( float amount, string currency, CarrotRequestResponse callback = null ) : void |
Inform Carrot about a purchase of premium currency for metrics tracking.
|
|
signParams ( string hostname, string endpoint, string secret, object>.Dictionary |
||
validateUser ( string accessTokenOrFacebookId ) : void |
Validate a Facebook user to allow posting of Carrot events. This method will trigger notification of authentication status using the AuthenticationStatusChanged event. |
Method | Description | |
---|---|---|
feedPostCallbackHandler ( object>.Dictionary |
||
javascriptSDKFeedPostCallback ( string message ) : void | ||
unitySDKFeedPostCallback ( object fbResult ) : void |
Method | Description | |
---|---|---|
Carrot ( ) : System | ||
CarrotCertValidator ( object sender, X509Certificate, certificate, X509Chain, chain, SslPolicyErrors, sslPolicyErrors ) : bool | ||
OnApplicationPause ( bool isPaused ) : void | ||
OnApplicationQuit ( ) : void | ||
Start ( ) : void | ||
addCommonPayloadFields ( UnityEngine payload, object>.Dictionary |
||
assignUnityObject2Instance ( string message ) : void | ||
cachedRequestCoroutine ( ServiceType, serviceType, string endpoint, object>.Dictionary |
||
cachedRequestHandler ( CarrotCache, cachedRequest, CarrotRequestResponse callback ) : CarrotRequestResponse | ||
hostForServiceType ( ServiceType, type ) : string | ||
postAction ( string actionId, IDictionary actionProperties, string objectId, IDictionary objectProperties, string objectInstanceId = null, CarrotRequestResponse callback = null ) : void | ||
postAction ( string actionId, string objectId, IDictionary objectProperties, string objectInstanceId = null, CarrotRequestResponse callback = null ) : void | ||
sendAppOpenedEvent ( ) : IEnumerator | ||
sendInstallMetricIfNeeded ( ) : IEnumerator | ||
servicesDiscoveryCoroutine ( ) : IEnumerator | ||
signedRequestCoroutine ( Request, carrotRequest, CarrotRequestResponse callback = null ) : IEnumerator | ||
validateUserCoroutine ( string accessTokenOrFacebookId ) : IEnumerator |
public static authStatusString ( AuthStatus authStatus ) : string | ||
authStatus | AuthStatus | |
return | string |
protected feedPostCallbackHandler ( object>.Dictionary |
||
reply | object>.Dictionary | |
return | void |
protected javascriptSDKFeedPostCallback ( string message ) : void | ||
message | string | |
return | void |
public popupFeedPost ( string objectInstanceId, object>.Dictionary |
||
objectInstanceId | string | |
objectProperties | object>.Dictionary | |
callback | CarrotRequestResponse | |
return | void |
public postAchievement ( string achievementId, CarrotRequestResponse callback = null ) : void | ||
achievementId | string | Carrot achievement id. |
callback | CarrotRequestResponse | Optional |
return | void |
public postAction ( string actionId, IDictionary actionProperties, ViralObject viralObject, CarrotRequestResponse callback = null ) : void | ||
actionId | string | Carrot action id. |
actionProperties | IDictionary | Parameters to be submitted with the action. |
viralObject | ViralObject | A |
callback | CarrotRequestResponse | Optional |
return | void |
public postAction ( string actionId, IDictionary actionProperties, string objectInstanceId, CarrotRequestResponse callback = null ) : void | ||
actionId | string | Carrot action id. |
actionProperties | IDictionary | Parameters to be submitted with the action. |
objectInstanceId | string | Carrot object instance id. |
callback | CarrotRequestResponse | Optional |
return | void |
public postAction ( string actionId, ViralObject viralObject, CarrotRequestResponse callback = null ) : void | ||
actionId | string | Carrot action id. |
viralObject | ViralObject | A |
callback | CarrotRequestResponse | Optional |
return | void |
public postAction ( string actionId, string objectInstanceId, CarrotRequestResponse callback = null ) : void | ||
actionId | string | Carrot action id. |
objectInstanceId | string | Carrot object instance id. |
callback | CarrotRequestResponse | Optional |
return | void |
public postHighScore ( uint score, CarrotRequestResponse callback = null ) : void | ||
score | uint | Score. |
callback | CarrotRequestResponse | Optional |
return | void |
public postPremiumCurrencyPurchase ( float amount, string currency, CarrotRequestResponse callback = null ) : void | ||
amount | float | The amount of real money spent. |
currency | string | The type of real money spent (eg. USD). |
callback | CarrotRequestResponse | Optional |
return | void |
public static signParams ( string hostname, string endpoint, string secret, object>.Dictionary |
||
hostname | string | |
endpoint | string | |
secret | string | |
urlParams | object>.Dictionary | |
return | string |
protected unitySDKFeedPostCallback ( object fbResult ) : void | ||
fbResult | object | |
return | void |
public validateUser ( string accessTokenOrFacebookId ) : void | ||
accessTokenOrFacebookId | string | Facebook user access token or Facebook User Id. |
return | void |