ActionComponents  04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
ActionComponents.ACTileController Class Reference

Creates, maintains and controls a scrollable collection of ACTile object that can be organized into ACTileGroups. Provides routines to automatically "live update" the contents or styling of the tiles and routines to handle user interaction with the tile selection. More...

Inheritance diagram for ActionComponents.ACTileController:
Collaboration diagram for ActionComponents.ACTileController:

Public Member Functions

 ACTileController ()
 Initializes a new instance of the T:ActionComponents.ACTileController class. More...
 
 ACTileController (CGRect rect)
 Initializes a new instance of the T:ActionComponents.ACTileController class. More...
 
 ACTileController (Context context)
 Initializes a new instance of the T:ActionComponents.ACTileController class. More...
 
 ACTileController (Context context, IAttributeSet attr)
 Initializes a new instance of the T:ActionComponents.ACTileController class. More...
 
 ACTileController (IntPtr javaReference, JniHandleOwnership transfer)
 Initializes a new instance of the T:ActionComponents.ACTileController class. More...
 
 ACTileController (Context context, IAttributeSet attr, int defStyle)
 Initializes a new instance of the T:ActionComponents.ACTileController class. More...
 
ACTileGroup AddGroup (ACTileGroupType groupType, string title, string footer)
 Adds a new group to the tile controller with the given properties. More...
 
void AddGroup (ACTileGroup group)
 Adds a new group to the tile controller with the given properties. More...
 
void RemoveGroupAt (int index)
 Removes the ACTilegGroup at index. More...
 
void ClearGroups ()
 Removes all ACTileGroups More...
 
void Redraw ()
 Redraw this instance. More...
 
void MoveToPoint (float x, float y)
 Moves this ACTile to the given point and honors any ACTileDragConstraints applied to the X or Y axis More...
 
void MoveToPoint (CGPoint pt)
 Moves this ACTile to the given point and honors any ACTileDragConstraints applied to the X or Y axis More...
 
void Resize (float width, float height)
 Resize this ACTile to the specified width and height. More...
 
bool PointInside (nfloat x, nfloat y)
 Tests to see if the given x and y coordinates are inside this ACTile More...
 
bool PointInside (CGPoint pt)
 Test to see if the given point is inside this ACTile More...
 
override void LayoutSubviews ()
 Layouts the subviews. More...
 
override void TouchesBegan (NSSet touches, UIEvent evt)
 Sent when one or more fingers touches the screen. More...
 
override void TouchesMoved (NSSet touches, UIEvent evt)
 Sent when the ACTile is being dragged More...
 
override void TouchesEnded (NSSet touches, UIEvent evt)
 Send when one or more fingers are lifted from the screen. More...
 
override void Draw (CGRect rect)
 Draw the specified rect. More...
 
delegate void ACTileControllerTouchedDelegate (ACTileController view)
 Occurs when this ACTileController is touched More...
 
delegate void ACTileControllerMovedDelegate (ACTileController view)
 Occurs when this ACTileController is moved More...
 
delegate void ACTileControllerReleasedDelegate (ACTileController view)
 Occurs when this ACTileController is released More...
 
delegate void ACTileControllerLiveUpdatingDelegate (ACTileController controller)
 Occurs when live updating has been kicked off by the ACTileController More...
 
- Public Member Functions inherited from UIKit.UIView
 UIView ()
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (CGRect rect)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (Context context)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (Context context, IAttributeSet attr)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (IntPtr javaReference, JniHandleOwnership transfer)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (Context context, IAttributeSet attr, int defStyle)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
void SetNeedsDisplay ()
 Sets the needs display flag. More...
 
void SetNeedsLayout ()
 Sets the needs layout. More...
 
virtual void AddSubview (UIView view)
 Adds the subview. More...
 
void InvokeOnMainThread (Action action)
 Invokes the given action on the main UI thread. More...
 
override bool OnTouchEvent (MotionEvent e)
 Handle the touch event. More...
 

Properties

Object tag [get, set]
 Gets or sets the [OPTIONAL] tag that can be assosciated with this ACTileController. More...
 
List< ACTileGroupgroups [get]
 Gets all of the ACTileGroups controlled by this ACTileController. More...
 
ACTileLiveUpdate liveUpdateAction [get, set]
 Gets or sets the .ACTileLiveUpdate action that will be performed via an automatic update kicked off by the liveUpdateTimer in the parent ACTileController More...
 
bool liveUpdateRunning [get]
 Gets a value indicating whether this ACTileController is running a live update More...
 
bool setScrollDirectionFromDeviceOrientation [get, set]
 Gets or sets a value indicating whether this T:ActionComponents.ACTileController sets scroll direction from device orientation. More...
 
bool suspendUpdates [get, set]
 Gets or sets a value indicating whether this ACTileController suspends updates while ACTileGroups and/or ACTiles are being added, edited or removed. More...
 
ACTileNavigationBar navigationBar [get]
 Gets the ACTileNavigationBar attached to this ACTileController More...
 
bool liveUpdate [get, set]
 Gets or sets a value indicating whether this ACTileController does automatic "live updating" of the ACTiles inside it's ACTileGroups More...
 
int liveUpdateFrequency [get, set]
 Gets or sets the "live update" frequency for ACTiles in this ACTileController's ACTileGroups More...
 
ACTileGroupAppearance groupAppearance [get, set]
 Gets or sets the default ACTileGroupAppearance for this ACTileController More...
 
ACTileAppearance tileAppearance [get, set]
 Gets or sets the default ACTileAppearance for this ACTileController More...
 
ACTileControllerScrollDirection scrollDirection [get, set]
 Gets or sets the ACTileControllerScrollDirection for this ACTileController More...
 
ACTileControllerAppearance appearance [get, set]
 Gets or sets the ACTileControllerAppearance fro this ACTileController More...
 
UIScrollView scrollView [get]
 Gets the UIScrollView inside this ACTileController More...
 
string title [get, set]
 Gets or sets the navigation bar title. More...
 
bool Enabled [get, set]
 Gets or sets a value indicating whether this ACTile is enabled. More...
 
ACTileGroup this[int index] [get, set]
 Gets or sets the ACTileGroup at the specified index. More...
 
int Count [get]
 Gets the number of ACTileGroups contained in this ACTileController More...
 
- Properties inherited from UIKit.UIView
CGRect Frame [get, set]
 Gets or sets the frame. More...
 
CGRect Bounds [get, set]
 Gets or sets the bounds. More...
 
Canvas DrawCanvas [get, set]
 Gets or sets the draw canvas. More...
 
ACColor BackgroundColor = null [get, set]
 Gets or sets the color of the background. More...
 
bool UserInteractionEnabled [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView user interaction enabled. More...
 
bool MultipleTouchEnabled = false [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView multiple touch enabled. More...
 
CGPoint LastTouchPoint = false [get, set]
 Gets or sets the last touch point. More...
 
bool ClipsToBounds = new CGPoint(0, 0) [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView clips to bounds. More...
 
bool ExclusiveTouch [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView exclusive touch. More...
 
bool CacheViewDrawing = true [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView cache view drawing to improve redraw performance. More...
 
List< UIViewSubviews = true [get]
 Gets the subviews. More...
 

Events

ACTileControllerTouchedDelegate Touched
 
ACTileControllerMovedDelegate Moved
 
ACTileControllerReleasedDelegate Released
 
ACTileControllerLiveUpdatingDelegate LiveUpdating
 
ACTileGroup.ACTileGroupTileTouchedDelegate TileTouched
 Occurs when a tile is touched in this group. More...
 

Additional Inherited Members

- Protected Member Functions inherited from UIKit.UIView
override void OnDraw (Canvas canvas)
 Called when the view needs to draw itself. More...
 
override void OnLayout (bool changed, nint left, nint top, nint right, nint bottom)
 Called when the view is being laid out. More...
 

Detailed Description

Creates, maintains and controls a scrollable collection of ACTile object that can be organized into ACTileGroups. Provides routines to automatically "live update" the contents or styling of the tiles and routines to handle user interaction with the tile selection.

Constructor & Destructor Documentation

ActionComponents.ACTileController.ACTileController ( )

Initializes a new instance of the T:ActionComponents.ACTileController class.

ActionComponents.ACTileController.ACTileController ( CGRect  rect)

Initializes a new instance of the T:ActionComponents.ACTileController class.

Parameters
rectRect.
ActionComponents.ACTileController.ACTileController ( Context  context)

Initializes a new instance of the T:ActionComponents.ACTileController class.

Parameters
contextContext.
ActionComponents.ACTileController.ACTileController ( Context  context,
IAttributeSet  attr 
)

Initializes a new instance of the T:ActionComponents.ACTileController class.

Parameters
contextContext.
attrAttr.
ActionComponents.ACTileController.ACTileController ( IntPtr  javaReference,
JniHandleOwnership  transfer 
)

Initializes a new instance of the T:ActionComponents.ACTileController class.

Parameters
javaReferenceJava reference.
transferTransfer.
ActionComponents.ACTileController.ACTileController ( Context  context,
IAttributeSet  attr,
int  defStyle 
)

Initializes a new instance of the T:ActionComponents.ACTileController class.

Parameters
contextContext.
attrAttr.
defStyleDef style.

Member Function Documentation

delegate void ActionComponents.ACTileController.ACTileControllerLiveUpdatingDelegate ( ACTileController  controller)

Occurs when live updating has been kicked off by the ACTileController

delegate void ActionComponents.ACTileController.ACTileControllerMovedDelegate ( ACTileController  view)

Occurs when this ACTileController is moved

delegate void ActionComponents.ACTileController.ACTileControllerReleasedDelegate ( ACTileController  view)

Occurs when this ACTileController is released

delegate void ActionComponents.ACTileController.ACTileControllerTouchedDelegate ( ACTileController  view)

Occurs when this ACTileController is touched

ACTileGroup ActionComponents.ACTileController.AddGroup ( ACTileGroupType  groupType,
string  title,
string  footer 
)

Adds a new group to the tile controller with the given properties.

Returns
The new group that was created.
Parameters
groupTypeThe type of group to create.
titleThe title of the new group.
footerThe footer for the new group.
void ActionComponents.ACTileController.AddGroup ( ACTileGroup  group)

Adds a new group to the tile controller with the given properties.

Parameters
groupGroup.

Here is the call graph for this function:

void ActionComponents.ACTileController.ClearGroups ( )

Removes all ACTileGroups

override void ActionComponents.ACTileController.Draw ( CGRect  rect)
virtual

Draw the specified rect.

Parameters
rectRect.

Reimplemented from UIKit.UIView.

Here is the call graph for this function:

override void ActionComponents.ACTileController.LayoutSubviews ( )
virtual

Layouts the subviews.

Reimplemented from UIKit.UIView.

void ActionComponents.ACTileController.MoveToPoint ( float  x,
float  y 
)

Moves this ACTile to the given point and honors any ACTileDragConstraints applied to the X or Y axis

Parameters
xThe x coordinate.
yThe y coordinate.
void ActionComponents.ACTileController.MoveToPoint ( CGPoint  pt)

Moves this ACTile to the given point and honors any ACTileDragConstraints applied to the X or Y axis

Parameters
ptPoint.
bool ActionComponents.ACTileController.PointInside ( nfloat  x,
nfloat  y 
)

Tests to see if the given x and y coordinates are inside this ACTile

Returns
true, if the point was inside, false otherwise.
Parameters
xThe x coordinate.
yThe y coordinate.
bool ActionComponents.ACTileController.PointInside ( CGPoint  pt)

Test to see if the given point is inside this ACTile

Returns
true, if point was inside, false otherwise.
Parameters
ptPoint.

Here is the call graph for this function:

void ActionComponents.ACTileController.Redraw ( )

Redraw this instance.

void ActionComponents.ACTileController.RemoveGroupAt ( int  index)

Removes the ACTilegGroup at index.

Parameters
indexIndex.
void ActionComponents.ACTileController.Resize ( float  width,
float  height 
)

Resize this ACTile to the specified width and height.

Parameters
widthWidth.
heightHeight.
override void ActionComponents.ACTileController.TouchesBegan ( NSSet  touches,
UIEvent  evt 
)
virtual

Sent when one or more fingers touches the screen.

<Docs>Set containing the touches.</Docs>

Parameters
touchesTouches.
evtEvt.

Reimplemented from UIKit.UIView.

override void ActionComponents.ACTileController.TouchesEnded ( NSSet  touches,
UIEvent  evt 
)
virtual

Send when one or more fingers are lifted from the screen.

<Docs>Set containing the touches.</Docs>

Parameters
touchesTouches.
evtEvt.

Reimplemented from UIKit.UIView.

override void ActionComponents.ACTileController.TouchesMoved ( NSSet  touches,
UIEvent  evt 
)
virtual

Sent when the ACTile is being dragged

<Docs>Set containing the touches.</Docs>

Parameters
touchesTouches.
evtEvt.

Reimplemented from UIKit.UIView.

Property Documentation

ACTileControllerAppearance ActionComponents.ACTileController.appearance
getset

Gets or sets the ACTileControllerAppearance fro this ACTileController

The appearance.

int ActionComponents.ACTileController.Count
get

Gets the number of ACTileGroups contained in this ACTileController

The count.

bool ActionComponents.ACTileController.Enabled
getset

Gets or sets a value indicating whether this ACTile is enabled.

true if enabled; otherwise, false.

Enabling/disabling a ACTile automatically changes the value of it's UserInteractionEnabled flag

ACTileGroupAppearance ActionComponents.ACTileController.groupAppearance
getset

Gets or sets the default ACTileGroupAppearance for this ACTileController

The group appearance.

List<ACTileGroup> ActionComponents.ACTileController.groups
get

Gets all of the ACTileGroups controlled by this ACTileController.

The groups in this controller.

bool ActionComponents.ACTileController.liveUpdate
getset

Gets or sets a value indicating whether this ACTileController does automatic "live updating" of the ACTiles inside it's ACTileGroups

true if live update; otherwise, false.

ACTileLiveUpdate ActionComponents.ACTileController.liveUpdateAction
getset

Gets or sets the .ACTileLiveUpdate action that will be performed via an automatic update kicked off by the liveUpdateTimer in the parent ACTileController

The live update action.

int ActionComponents.ACTileController.liveUpdateFrequency
getset

Gets or sets the "live update" frequency for ACTiles in this ACTileController's ACTileGroups

The live update frequency.

bool ActionComponents.ACTileController.liveUpdateRunning
get

Gets a value indicating whether this ACTileController is running a live update

true if live update running; otherwise, false.

ACTileNavigationBar ActionComponents.ACTileController.navigationBar
get

Gets the ACTileNavigationBar attached to this ACTileController

The navigation bar.

ACTileControllerScrollDirection ActionComponents.ACTileController.scrollDirection
getset

Gets or sets the ACTileControllerScrollDirection for this ACTileController

The scroll direction.

The default scroll direction will match the device's orientation

UIScrollView ActionComponents.ACTileController.scrollView
get

Gets the UIScrollView inside this ACTileController

The scroll view.

bool ActionComponents.ACTileController.setScrollDirectionFromDeviceOrientation
getset

Gets or sets a value indicating whether this T:ActionComponents.ACTileController sets scroll direction from device orientation.

true if sets scroll direction from device orientation; otherwise, false.

bool ActionComponents.ACTileController.suspendUpdates
getset

Gets or sets a value indicating whether this ACTileController suspends updates while ACTileGroups and/or ACTiles are being added, edited or removed.

true if suspend updates; otherwise, false.

You should set this property to true when adding or removing large sums of ACTileGroups or ACTiles.

Object ActionComponents.ACTileController.tag
getset

Gets or sets the [OPTIONAL] tag that can be assosciated with this ACTileController.

The tag.

ACTileGroup ActionComponents.ACTileController.this[int index]
getset

Gets or sets the ACTileGroup at the specified index.

Parameters
indexIndex.
ACTileAppearance ActionComponents.ACTileController.tileAppearance
getset

Gets or sets the default ACTileAppearance for this ACTileController

The tile appearance.

string ActionComponents.ACTileController.title
getset

Gets or sets the navigation bar title.

The title.

Event Documentation

ACTileControllerLiveUpdatingDelegate ActionComponents.ACTileController.LiveUpdating
ACTileControllerMovedDelegate ActionComponents.ACTileController.Moved
ACTileControllerReleasedDelegate ActionComponents.ACTileController.Released
ACTileGroup.ACTileGroupTileTouchedDelegate ActionComponents.ACTileController.TileTouched

Occurs when a tile is touched in this group.

ACTileControllerTouchedDelegate ActionComponents.ACTileController.Touched