CraftARTrackingContentImageButton Class Reference
#import <CraftARTrackingContentImageButton.h>
Inheritance diagram for CraftARTrackingContentImageButton:

Instance Methods |
|
(id) | - initWithImage:ofType:andActionURL: |
(id) | - initWithImageURL:andActionURL: |
(id) | - initWithImage:ofType:andPressedImage:ofType:andActionURL: |
(id) | - initWithImageURL:andPressedImageURL:andActionURL: |
![]() |
Properties |
|
CraftARTrackingContentImage * | imageNormal |
Image content to be drawn when the content is not pressed. | |
CraftARTrackingContentImage * | imagePressed |
Image content to be drawn when the content is pressed. | |
NSURL * | actionURL |
Action to perform (open url) when the content is clicked. | |
Boolean | performDefaultAction |
Perform the default action (open url) when clicked, NO by default. More... | |
![]() |
Detailed Description
Interactive content. A button that can be pressed, an action can be associated to it.
- Note
- This content must be extended to add some behaviour.
Method Documentation
- (id) initWithImage: | (NSString *) | imageName | |
ofType: | (NSString *) | imageType | |
andActionURL: | (NSURL *) | actionURL | |
Initialize content with one image from the main bundle.
- Parameters
-
imageName Name of the image to use as imageNormal imageType Type of the image to load actionURL URL of the action to perform on clicked.
- Note
- When the button is pressed the image will be colorized to give feedback.
- (id) initWithImage: | (NSString *) | imageName | |
ofType: | (NSString *) | imageType | |
andPressedImage: | (NSString *) | pressedImageName | |
ofType: | (NSString *) | pressedImageType | |
andActionURL: | (NSURL *) | actionURL | |
Initialize content with two images from the main bundle.
- Parameters
-
imageName Name of the image to use as imageNormal imageType Type of the image to load pressedImageName Name of the image to use as imagePressed pressedImageType Type of the image to load actionURL URL of the action to perform on clicked.
- (id) initWithImageURL: | (NSURL *) | imageURL | |
andActionURL: | (NSURL *) | actionURL | |
Initialize content with one image from a URL.
- Parameters
-
imageURL URL of the image to use as imageNormal actionURL URL of the action to perform on clicked.
- Note
- When the button is pressed the image will be colorized to give feedback.
- (id) initWithImageURL: | (NSURL *) | imageURL | |
andPressedImageURL: | (NSURL *) | pressedImageURL | |
andActionURL: | (NSURL *) | actionURL | |
Initialize content with two images URLs.
- Parameters
-
imageURL URL of the image to use as imageNormal pressedImageURL URL of the image to use as imagePressed actionURL URL of the action to perform on clicked.
Property Documentation
|
readwritenonatomicassign |
Perform the default action (open url) when clicked, NO by default.
- Note
- this option is set to true automatically when the button is loaded from a scene description item.
The documentation for this class was generated from the following file:
- CraftARProSDK.framework/Headers/CraftARTrackingContentImageButton.h
Comments
0 comments
Article is closed for comments.