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.
Datei anzeigen Open project: adjust/windows_sdk

Public Methods

Method 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

Method 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 method

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

ApplicationActivated() public static method

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
return void

ApplicationDeactivated() public static method

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
return void

ApplicationLaunching() public static method

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. ///
return void

GetWindowsAdId() public static method

Get the Windows Advertising Id
public static GetWindowsAdId ( ) : string
return string

IsEnabled() public static method

Check if the SDK is enabled or disabled
public static IsEnabled ( ) : bool
return bool

SetEnabled() public static method

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

SetOfflineMode() public static method

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

SetupLogging() public static method

public static SetupLogging ( Action logDelegate, LogLevel logLevel = null ) : void
logDelegate Action
logLevel LogLevel
return void

TrackEvent() public static method

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