This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UIAutoScrollView(frame: frame) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIAutoScroll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIAutoScroll | |
| class ViewController : UIViewController { | |
| var autoScrollView : UIAutoScroll? = nil | |
| override func viewDidLoad(){ | |
| super.viewDidLoad() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencies: [ | |
| .package(url: "https://github.com/visualcamp/UIAutoScroll.git") | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| enum GazeTrackerState { | |
| case none | |
| case initializing | |
| case initialized | |
| case initFailed | |
| case startTracking | |
| case stopTracking | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| i386 : iPhone Simulator | |
| x86_64 : iPhone Simulator | |
| iPhone1,1 : iPhone | |
| iPhone1,2 : iPhone 3G | |
| iPhone2,1 : iPhone 3GS | |
| iPhone3,1 : iPhone 4 | |
| iPhone3,2 : iPhone 4 GSM Rev A | |
| iPhone3,3 : iPhone 4 CDMA | |
| iPhone4,1 : iPhone 4S | |
| iPhone5,1 : iPhone 5 (GSM) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void printMemory() { | |
| final Runtime runtime = Runtime.getRuntime(); | |
| final long usedMemInMB=(runtime.totalMemory() - runtime.freeMemory()) / 1048576L; | |
| final long maxHeapSizeInMB=runtime.maxMemory() / 1048576L; | |
| final long availHeapSizeInMB = maxHeapSizeInMB - usedMemInMB; | |
| long nativeHeapSize = Debug.getNativeHeapSize() / 1048576L; | |
| long nativeHeapFreeSize = Debug.getNativeHeapFreeSize() / 1048576L; | |
| long usedNativeMemInMB = nativeHeapSize - nativeHeapFreeSize; | |
| Log.d("Memory", "used Java Memory : " + usedMemeInMB + "MB, " + "used Native Memory : " + usedNativeMemInMB +"MB"); |
NewerOlder