This topic has not yet been rated - Rate this topic

AdGameComponent Members [UAC_API_REF]

Published: June 4, 2013

The AdGameComponent class inherits from the DrawableGameComponent class. The following members are unique to the AdGameComponent class or extend the functionality of the DrawableGameComponent class.

Public Members

Methods

Name

Description

CreateAd

Creates a new instance of a DrawableAd object by using the provided parameters (overloaded).

Draw

Draws graphical elements of the ad inside the DisplayRectangle. Inherited from DrawableGameComponent.Draw().

Initialize

Creates an AdGameComponent object that will manage the DrawableAd objects in your game (overloaded).

RemoveAd

Removes a specific instance of a DrawableAd object from the AdGameComponent.

RemoveAll

Removes all instances of DrawableAd objects from the AdGameComponent.

Update

Advances the state of all DrawableAd objects contained by the AdGameComponent. Inherited from GameComponent.Update().

Properties

Name

Description

ApplicationId

Gets the application identifier.

Country

Gets or sets the two-letter country or region code to use for ad targeting.

Current

Gets a reference to this AdGameComponent object.

Engaged

Gets a value that indicates whether the user is interacting with an ad.

InputConsumed

Gets a value that indicates whether the user’s input was consumed by a DrawableAd object.

Initialized

Gets a value that indicates whether the AdGameComponent has been created by a prior call to Initialize.

PostalCode

Gets or sets the postal code to use for ad targeting.

Events

Name

Description

EngagedChanged

Raised when the AdGameComponent.Engaged property changes.

InputConsumedChanged

Raised when the InputConsumed property changes.

Report a bug in the product. Send email to psupport@microsoft.com. Send feedback about this documentation to adsfdbk@microsoft.com. Copyright © by Microsoft Corporation. All rights reserved.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.