C# Class AdjustSdk.Adjust

The main interface to Adjust. Use the methods of this class to tell Adjust about the usage of your app. See the README for details.
Afficher le fichier Open project: adjust/windows_sdk

Méthodes publiques

Méthode Description
AppWillOpenUrl ( Uri uri ) : void

Read the URL that opened the application to search for an adjust deep link

ApplicationActivated ( ) : void

Tell Adjust that the application is activated (brought to foreground). This is used to keep track of the current session state. This should only be used if the VisibilityChanged mechanism doesn't work

ApplicationDeactivated ( ) : void

Tell Adjust that the application is deactivated (sent to background). This is used to calculate session attributes like session length and subsession count. This should only be used if the VisibilityChanged mechanism doesn't work

ApplicationLaunching ( AdjustConfig adjustConfig ) : void

Tell Adjust that the application was launched. This is required to initialize Adjust. Call this in the Application_Launching method of your Windows.UI.Xaml.Application class.

GetWindowsAdId ( ) : string

Get the Windows Advertising Id

IsEnabled ( ) : bool

Check if the SDK is enabled or disabled

SetEnabled ( bool enabled ) : void

Enable or disable the adjust SDK

SetOfflineMode ( bool offlineMode ) : void

Puts the SDK in offline or online mode

SetupLogging ( Action logDelegate, LogLevel logLevel = null ) : void
TrackEvent ( AdjustEvent adjustEvent ) : void

Tell Adjust that a particular event has happened.

Private Methods

Méthode Description
Adjust ( ) : System
VisibilityChanged ( CoreWindow sender, VisibilityChangedEventArgs args ) : void

Tell Adjust that the application is activated (brought to foreground) or deactivated (sent to background).

Method Details

AppWillOpenUrl() public static méthode

Read the URL that opened the application to search for an adjust deep link
public static AppWillOpenUrl ( Uri uri ) : void
uri System.Uri
Résultat void

ApplicationActivated() public static méthode

Tell Adjust that the application is activated (brought to foreground). This is used to keep track of the current session state. This should only be used if the VisibilityChanged mechanism doesn't work
public static ApplicationActivated ( ) : void
Résultat void

ApplicationDeactivated() public static méthode

Tell Adjust that the application is deactivated (sent to background). This is used to calculate session attributes like session length and subsession count. This should only be used if the VisibilityChanged mechanism doesn't work
public static ApplicationDeactivated ( ) : void
Résultat void

ApplicationLaunching() public static méthode

Tell Adjust that the application was launched. This is required to initialize Adjust. Call this in the Application_Launching method of your Windows.UI.Xaml.Application class.
public static ApplicationLaunching ( AdjustConfig adjustConfig ) : void
adjustConfig AdjustConfig /// The object that configures the adjust SDK. ///
Résultat void

GetWindowsAdId() public static méthode

Get the Windows Advertising Id
public static GetWindowsAdId ( ) : string
Résultat string

IsEnabled() public static méthode

Check if the SDK is enabled or disabled
public static IsEnabled ( ) : bool
Résultat bool

SetEnabled() public static méthode

Enable or disable the adjust SDK
public static SetEnabled ( bool enabled ) : void
enabled bool The flag to enable or disable the adjust SDK
Résultat void

SetOfflineMode() public static méthode

Puts the SDK in offline or online mode
public static SetOfflineMode ( bool offlineMode ) : void
offlineMode bool
Résultat void

SetupLogging() public static méthode

public static SetupLogging ( Action logDelegate, LogLevel logLevel = null ) : void
logDelegate Action
logLevel LogLevel
Résultat void

TrackEvent() public static méthode

Tell Adjust that a particular event has happened.
public static TrackEvent ( AdjustEvent adjustEvent ) : void
adjustEvent AdjustEvent /// The object that configures the event. ///
Résultat void