iOS Guides | Samples

MonoTouch.UIKit.UIDynamicItemBehavior Class

Specifies physics properties for IUIDynamicItems. Also allows custom velocities to be added to items.

See Also: UIDynamicItemBehavior

Syntax

[MonoTouch.Foundation.Register("UIDynamicItemBehavior", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 7, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class UIDynamicItemBehavior : UIDynamicBehavior

Remarks

When a UIDynamicItemBehavior is applied to a IUIDynamicItem, it modifies the default values of the properties used by UIKit Dynamics in that IUIDynamicItem.

The UIDynamicItemBehavior.AddAngularVelocityForItem and UIDynamicItemBehavior.AddLinearVelocityForItem methods allow the application developer to add arbitrary velocities to a IUIDynamicItem.

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIDynamicItemBehavior are listed below.

See Also: UIDynamicBehavior

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
Creates a new dynamic behavior and associates it with the specified items.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

AllowsRotationBoolean. Whether rotation is allower for the behavior's dynamic items.
AnchoredBoolean. Gets or sets a Boolean value that controls whether the item is anchoed to its current position.
AngularResistanceSingle. The angular resistance for the behavior's dynamic items.
ChargeSingle. Gets or sets the electric charge on the item.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
DensitySingle. The relative mass density of the behavior's dynamic items.
ElasticitySingle. The elasticity applied to collisions between the behavior's dynamic items.
FrictionSingle. The linear resistance of the IUIDynamicItem when rubbing against another.
[read-only]
ItemsIUIDynamicItem[]. The dynamic items associated with this UIDynamicItemBehavior. Read-only.
ResistanceSingle. The linear resistance of the IUIDynamicItem to movement across the background.

Public Methods

AddAngularVelocityForItem(Single, IUIDynamicItem)
Increases the angular velocity of a dynamic item.
AddItem(IUIDynamicItem)
Adds the specified dynamic item to this UIDynamicItemBehavior's Items.
AddLinearVelocityForItem(PointF, IUIDynamicItem)
Increases the linear velocity of a dynamic item.
GetAngularVelocityForItem(IUIDynamicItem) : Single
The angular velocity of the given dynamic item.
GetLinearVelocityForItem(IUIDynamicItem) : PointF
The linear velocity of the given dynamic item.
RemoveItem(IUIDynamicItem)
Removes the specified item from this UIDynamicItemBehavior's Items.