Android Programming Press on the image to return to the main documentation page.

ICOSLibrary

Written by Giuseppe Salvi

List of types:

ICOSFadeAnimation
ICOSFlip3DView
ICOSGallery
ICOSGoogleWeather
ICOSGraphics
ICOSGridView
ICOSMusicPlayer
ICOSPhone
ICOSRotateAnimation
ICOSScaleAnimation
ICOSSeekBar
ICOSSlideAnimation
ICOSStrings
ICOSTextToSpeech
ICOSTitleBarAnimation

ICOSFadeAnimation


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

animationend

Members:


  AutoRepeat

  AutoReverse

  FadeIn (EventName As String, Duration As Long)

  FadeInOut (EventName As String, Duration As Int)

  FadeOut (EventName As String, Duration As Long)

  FadeOutIn (EventName As String, Duration As Long)

  InfinityFade (EventName As String, Duration As Long)

  IsInitialized As Boolean

  StartAnim (view As android.view.View)

  StartAnimAtTime As Int [write only]

  StopAnin (view As android.view.View)

  Version As Double [read only]

Members description:

AutoRepeat
Set repeat infinity automatically
AutoReverse
Set reverse automatically
FadeIn (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.FadeIn("anim",2)
anim.StartAnim(ImageView1)
End Sub
FadeInOut (EventName As String, Duration As Int)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.FadeInOut("anim",2)
anim.StartAnim(ImageView1)
End Sub
FadeOut (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.FadeOut("anim",2)
anim.StartAnim(ImageView1)
End Sub
FadeOutIn (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.FadeOutIn("anim",2)
anim.StartAnim(ImageView1)
End Sub
InfinityFade (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.InfiniteFade("anim",2)
anim.StartAnim(ImageView1)
End Sub
IsInitialized As Boolean
StartAnim (view As android.view.View)
anim.StartAnim
StartAnimAtTime As Int [write only]
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.StartAnimAtTime=5000 The Animation Will start after 5 seconds
anim.FadeOut(2)
anim.StartAnim(ImageView1)
End Sub
StopAnin (view As android.view.View)
Stop the animation
Version As Double [read only]
Return the version of this library

ICOSFlip3DView


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

animationend

Members:


  AutoRepeat

  AutoReverse

  FLIP_HORIZONTAL As Int

  FLIP_VERTICAL As Int

  Flip3DView (EventName As String, v As android.view.View, Degrees As Float, Duration As Long, Direction As Int)

  Flip3DView2 (EventName As String, v As android.view.View, FromDegrees As Float, ToDegrees As Float, Duration As Long)

  IsInitialized As Boolean

  StartAnim (view As android.view.View)

  StartAnimAtTime As Long [write only]

  StopAnin (view As android.view.View)

  Swap2View (EventName As String, view1 As android.view.View, view2 As android.view.View, Duration As Long, Direction As Int)

  Version As Double [read only]

Members description:

AutoRepeat
Set repeat infinity automatically
AutoReverse
Set reverse automatically
FLIP_HORIZONTAL As Int
FLIP_VERTICAL As Int
Flip3DView (EventName As String, v As android.view.View, Degrees As Float, Duration As Long, Direction As Int)
Direction -> FLIP_HORIZONTAL = 1
Direction -> FLIP_VERTICAL = 2
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.Flip3DView("anim",ImageView1,180,3,anim.FLIP_HRIZONTAL)
anim.StartAnim(ImageView1)
End Sub
Flip3DView2 (EventName As String, v As android.view.View, FromDegrees As Float, ToDegrees As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.Flip3D_XYZ("anim",ImageView1,0,180,3,anim.FLIP_HRIZONTAL)
anim.StartAnim(ImageView1)
End Sub
IsInitialized As Boolean
StartAnim (view As android.view.View)
anim.StartAnim
StartAnimAtTime As Long [write only]
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.StartAnimAtTime=5000 The Animation Will start after 5 seconds
anim.FadeOut(2)
anim.StartAnim(ImageView1)
End Sub
StopAnin (view As android.view.View)
Stop the animation
Swap2View (EventName As String, view1 As android.view.View, view2 As android.view.View, Duration As Long, Direction As Int)
Direction -> FLIP_HORIZONTAL = 1
Direction -> FLIP_VERTICAL = 2
Example:
Dim anim As ICOSFlip3DView
Dim img1,img2 As ImageView
Dim Button1 As Button

Sub img1_Click
anim.Swap2View("anim",img1,img2)
End Sub
Version As Double [read only]
Return the version of this library

ICOSGallery


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

ItemClick (Position As Int, Value As Object)
ItemLongClick (Position As Int, Value As Object)

Members:


  AddBitmap (Bitmap As android.graphics.Bitmap)

  AddText (Text1 As CharSequence)

  AddTextAndBitmap (Text1 As CharSequence, Bitmap As android.graphics.Bitmap)

  AddTwoText (Text1 As CharSequence, Text2 As CharSequence)

  AddTwoTextAndBitmap (Text1 As CharSequence, Text2 As CharSequence, Bitmap As android.graphics.Bitmap)

  Background As android.graphics.drawable.Drawable

  BringToFront

  Clear

  Color As Int [write only]

  dispatchSetSelected (Selected As Boolean)

  Enabled As Boolean

  GetItem (Index As Int) As Object

  Gravity As Int [write only]

  Height As Int

  Initialize (arg1 As String)

  Invalidate

  Invalidate2 (arg0 As android.graphics.Rect)

  Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  IsInitialized As Boolean

  Left As Int

  RemoveAt (Index As Int)

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  Spacing As Int [write only]

  Tag As Object

  Top As Int

  Visible As Boolean

  Width As Int

Members description:

AddBitmap (Bitmap As android.graphics.Bitmap)
Add only Bitmap
Example:
gallery.AddBitmap(LoadBitmap(File.DirAssets,"icon.png))
AddText (Text1 As CharSequence)
Add single Text
Example:
gallery.AddText("Hello")
AddTextAndBitmap (Text1 As CharSequence, Bitmap As android.graphics.Bitmap)
Add Text and Bitmap
Example:
gallery.AddTextAndBitmap("Hello",LoadBitmap(File.DirAssets,"icon.png))
AddTwoText (Text1 As CharSequence, Text2 As CharSequence)
Add Two Text
Example:
gallery.AddTwoText("Hello","Basic4Android)
AddTwoTextAndBitmap (Text1 As CharSequence, Text2 As CharSequence, Bitmap As android.graphics.Bitmap)
Add Two Text and Bitmap
Example:
gallery.AddTwoTextAndBitmap("Hello","Basic4Android",LoadBitmap(File.DirAssets,"icon.png))
Background As android.graphics.drawable.Drawable
BringToFront
Clear
Clear all item from the Gallery
Color As Int [write only]
dispatchSetSelected (Selected As Boolean)
Dispatch setSelected to all of this View's children.
Enabled As Boolean
GetItem (Index As Int) As Object
Return the value of the item at specified position in a Gallery
Gravity As Int [write only]
Describes how the child views are aligned.
Height As Int
Initialize (arg1 As String)
Invalidate
Invalidate2 (arg0 As android.graphics.Rect)
Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
IsInitialized As Boolean
Left As Int
RemoveAt (Index As Int)
Remove the item at specified position in a Gallery
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
Spacing As Int [write only]
Sets the spacing between items in a Gallery
Examples:
gallery.Spacing=24
Tag As Object
Top As Int
Visible As Boolean
Width As Int

ICOSGoogleWeather


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Permissions:

android.permission.INTERNET

Events:

None

Members:


  CityName As String [read only]

  CurrentCondition As String [read only]

  CurrentDateTime As String [read only]

  CurrentForecastConditions As String [read only]

  CurrentForecastInformation As String [read only]

  CurrentHumidity As String [read only]

  CurrentIconConditions As String [read only]

  CurrentTempC As String [read only]

  CurrentTempF As String [read only]

  CurrentWindCondition As String [read only]

  ForecastConditions (pos As Int) As String

  ForecastDate As String [read only]

  GetCondition (pos As Int) As String

  GetDayOfWeek (pos As Int) As String

  GetHighTemp (pos As Int) As String

  GetIconConditions (pos As Int) As String

  GetLowTemp (pos As Int) As String

  Initialize (EventName As String)

  PostalCode As String [read only]

  SetCityName As String [write only]

  UnitSystem As String [read only]

  Version As Double [read only]

Members description:

CityName As String [read only]
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=CityInformation

Return Forecast City Name
CurrentCondition As String [read only]
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=CurrentCondition

Return CurrentCondition
CurrentDateTime As String [read only]
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=CurrentDateTime

Return Forecast Current Date Time
CurrentForecastConditions As String [read only]
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=CurrentForecastConditions

Return CurrentCondition + Temp F + Temp C + Humidity + Wind Condition
CurrentForecastInformation As String [read only]
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=CurrentForecastInformation

Return ForecastInformation (city , postal code , forecast date , current date time , unit system)
CurrentHumidity As String [read only]
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=CurrentHumidity

Return Current Humidity
CurrentIconConditions As String [read only]
Dim ics As ICOSGoogleWeather
Dim img As ImageView

SetCityName="NewYork"
img.SetBackgroundImage=CurrentIconConditions

Display Current Icon For Condition
CurrentTempC As String [read only]
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=CurrentTempC

Return Current Celsius
CurrentTempF As String [read only]
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=getCurrentTempF

Return Current Fahrenheit
CurrentWindCondition As String [read only]
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=getCurrentWindCondition

Return Current Wind Condition
ForecastConditions (pos As Int) As String
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=ForecastConditions(0) - between 0 and 3

Return Day Of Week + Condition + Low Temp. + High Temp.
ForecastDate As String [read only]
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=ForecastDate

Return Forecast Date
GetCondition (pos As Int) As String
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=GetCondition(0) - between 0 and 3

Return Condition
GetDayOfWeek (pos As Int) As String
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=GetDayOfWeek(0) - between 0 and 3

Return Day Of Week
GetHighTemp (pos As Int) As String
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=GetHighTemp(0) - between 0 and 3

Return the High Temperature
GetIconConditions (pos As Int) As String
Dim ics As ICOSGoogleWeather
Dim img As ImageView

SetCityName="NewYork"
img.SetBackgroundImage=GetIconConditions(0) - between 0 and 3

Display Icon condition
GetLowTemp (pos As Int) As String
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=GetLowTemp(0) - between 0 and 3

Return the Low Temperature
Initialize (EventName As String)
Dim ics As ICOSGoogleWeather

Initialize("ics")

Initilize the object
PostalCode As String [read only]
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=PostalCode

Return Forecast Postal Code
SetCityName As String [write only]
Dim ics As ICOSGoogleWeather
Dim img As ImageView

SetCityName="NewYork"

Set City Name to be loaded
UnitSystem As String [read only]
Dim ics As ICOSGoogleWeather
Dim lb As Label

SetCityName="NewYork"
lb.Text=UnitSystem

Return Forecast Current Unit System
Version As Double [read only]
Return the version of this library

ICOSGraphics


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Permissions:

android.permission.SET_WALLPAPER

Events:

None

Members:


  Boost (Type As Int, Percentage As Float) As android.graphics.Bitmap

  Emboss (Factor As Int, Offset As Int) As android.graphics.Bitmap

  Engrave (Factor As Int, Offset As Int) As android.graphics.Bitmap

  FastBlur (radius As Int) As android.graphics.Bitmap

  FlipBitmap (Type As Int) As android.graphics.Bitmap

  GaussianBlur (BlurValue As Double) As android.graphics.Bitmap

  Gravity_BOTTOM As Int

  Gravity_CENTER As Int

  Gravity_TOP As Int

  ImageRotate (RotateDegree As Float) As android.graphics.Bitmap

  InitializeBitmap (bmp As android.graphics.Bitmap)

  IsInitialized As Boolean

  LENGTH_LONG As Int

  LENGTH_SHORT As Int

  Mirror As android.graphics.Bitmap

  MyToastBitmap (bmp As android.graphics.Bitmap, mGravity As Int, mDuration As Int)

  MyToastView (view As android.view.View, mGravity As Int, Duration As Int)

  RoundCorner (RoundValue As Float) As android.graphics.Bitmap

  SepiaEffect (Depth As Int, Red As Double, Green As Double, Blue As Double) As android.graphics.Bitmap

  SetWalpaper (bmp As android.graphics.Bitmap)

  Smooth (Factor As Int, Offset As Int) As android.graphics.Bitmap

  Version As Double [read only]

Members description:

Boost (Type As Int, Percentage As Float) As android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
Type = 1 --> RED
Type = 2 --> GREEN
Type = 3 --> BLUE
ImageView1.Bitmap=ip.Boost(LoadBitmap(File.Dirassets , "SomeFile.png" , Type , Percentage)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap , Type , Percentage)
Emboss (Factor As Int, Offset As Int) As android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.Emboss(LoadBitmap(File.Dirassets , "SomeFile.png")
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap)
Engrave (Factor As Int, Offset As Int) As android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.Engrave(LoadBitmap(File.Dirassets , "SomeFile.png")
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap)
FastBlur (radius As Int) As android.graphics.Bitmap
FlipBitmap (Type As Int) As android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Type = 1 --> FLIP_VERTICAL
Type = 2 --> FLIP_HORIZONTAL
Example:
ImageView1.Bitmap=ip.Flip(LoadBitmap(File.Dirassets , "SomeFile.png" , Type)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap , type)
GaussianBlur (BlurValue As Double) As android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.GaussianBlur(LoadBitmap(File.Dirassets , "SomeFile.png",BlurValue)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap, BlurValue)
Gravity_BOTTOM As Int
Gravity_CENTER As Int
Gravity_TOP As Int
ImageRotate (RotateDegree As Float) As android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.Rotate(LoadBitmap(File.Dirassets , "SomeFile.png" , RotateDegree)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap ,RotateDegree)
InitializeBitmap (bmp As android.graphics.Bitmap)
Initialize the Object.
Example:
Dim ip as ICOSImageProcessing
ip.Initialize("ip")
IsInitialized As Boolean
LENGTH_LONG As Int
LENGTH_SHORT As Int
Mirror As android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.Mirror(LoadBitmap(File.Dirassets , "SomeFile.png"))
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap)
MyToastBitmap (bmp As android.graphics.Bitmap, mGravity As Int, mDuration As Int)
mGravity 1 = Gravity.TOP
mGravity 2 = Gravity.CENTER
mGravity 3 = Gravity.BOTTOM

mDuration 0 = Toast.LENGTH_SHORT
mDuration 1 = Toast.LENGTH_LONG

Dim ip as ICOSImageProcessing
Dim img As ImageView
Example:
Sub b1_Click
ip.MyToastBitmap(LoadBitmap(LoadBitmap(File.Dirassets , "SomeFile.png") , mGravity, mDuration)
End Sub
MyToastView (view As android.view.View, mGravity As Int, Duration As Int)
mGravity 1 = Gravity.TOP
mGravity 2 = Gravity.CENTER
mGravity 3 = Gravity.BOTTOM

Duration 0 = Toast.LENGTH_SHORT
Duration 1 = Toast.LENGTH_LONG

Dim ip as ICOSImageProcessing
Dim img As ImageView - ( You can use any view " (ImageView is just an examples) ")
Example:

Sub b1_Click
ip.MyToastView(img, mGravity, Duration)
End Sub
RoundCorner (RoundValue As Float) As android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.RoundCorner(LoadBitmap(File.Dirassets , "SomeFile.png" , RoundValue)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap , RoundValue)
SepiaEffect (Depth As Int, Red As Double, Green As Double, Blue As Double) As android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.SepiaEffect(LoadBitmap(File.Dirassets , "SomeFile.png" ,Depth , Red , Green , Blue)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap ,Depth , Red , Green , Blue)
SetWalpaper (bmp As android.graphics.Bitmap)
Dim ip as ICOSImageProcessing
Example:
Sub b1_Click
ip.setWalpaper(LoadBitmap(File.Dirassets , "SomeFile.png"))
End Sub
Smooth (Factor As Int, Offset As Int) As android.graphics.Bitmap
Dim ImageView1 as ImageView
Dim ip as ICOSImageProcessing
Example:
ImageView1.Bitmap=ip.Smooth(LoadBitmap(File.Dirassets , "SomeFile.png" , SmoothValue)
Or
ImageView1.Bitmap=ip.Boost(ImageView1.Bitmap ,SmoothValue)
Version As Double [read only]
Return the version of this library

ICOSGridView


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

ItemClick (Position As Int, Value As Object)
ItemLongClick (Position As Int, Value As Object)

Members:


  AddBitmap (Bitmap As android.graphics.Bitmap)

  AddText (Text1 As CharSequence)

  AddTextAndBitmap (Text1 As CharSequence, Bitmap As android.graphics.Bitmap)

  AddTwoText (Text1 As CharSequence, Text2 As CharSequence)

  AddTwoTextAndBitmap (Text1 As CharSequence, Text2 As CharSequence, Bitmap As android.graphics.Bitmap)

  Background As android.graphics.drawable.Drawable

  BringToFront

  Clear

  Color As Int [write only]

  ColumnWidth As Int [write only]

  Enabled As Boolean

  FastScrollEnabled As Boolean

  GetItem (Index As Int) As Object

  Gravity As Int [write only]

  Height As Int

  HSpacing As Int [write only]

  Initialize (arg1 As String)

  Invalidate

  Invalidate2 (arg0 As android.graphics.Rect)

  Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  IsInitialized As Boolean

  Left As Int

  NumColumns As Int [write only]

  RemoveAt (Index As Int)

  RemoveView

  RequestFocus As Boolean

  ScrollingBackgroundColor As Int [write only]

  Selection As Int [write only]

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  SetSelection (Position As Int)

  StretchMode As Int [write only]

  Tag As Object

  Top As Int

  Visible As Boolean

  VSpacing As Int [write only]

  Width As Int

Members description:

AddBitmap (Bitmap As android.graphics.Bitmap)
AddText (Text1 As CharSequence)
AddTextAndBitmap (Text1 As CharSequence, Bitmap As android.graphics.Bitmap)
AddTwoText (Text1 As CharSequence, Text2 As CharSequence)
AddTwoTextAndBitmap (Text1 As CharSequence, Text2 As CharSequence, Bitmap As android.graphics.Bitmap)
Background As android.graphics.drawable.Drawable
BringToFront
Clear
Color As Int [write only]
ColumnWidth As Int [write only]
Enabled As Boolean
FastScrollEnabled As Boolean
GetItem (Index As Int) As Object
Gravity As Int [write only]
Height As Int
HSpacing As Int [write only]
Initialize (arg1 As String)
Invalidate
Invalidate2 (arg0 As android.graphics.Rect)
Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
IsInitialized As Boolean
Left As Int
NumColumns As Int [write only]
RemoveAt (Index As Int)
RemoveView
RequestFocus As Boolean
ScrollingBackgroundColor As Int [write only]
Selection As Int [write only]
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
SetSelection (Position As Int)
StretchMode As Int [write only]
Tag As Object
Top As Int
Visible As Boolean
VSpacing As Int [write only]
Width As Int

ICOSMusicPlayer


Events:

Complete

Members:


  ConvertTimeToMinuts As String

  ConvertTimeToSeconds As String

  Duration As Int [read only]

  Get_Album_Artist As Int

  Get_Album_Title As Int

  Get_Artist_Name As Int

  Get_Author_Name As Int

  Get_Bitrate As Int

  Get_Cd_Track_Number As Int

  Get_Compilation As Int

  Get_Composer_Name As Int

  Get_Date As Int

  Get_Disc_Number As Int

  Get_Duration As Int

  Get_Genre As Int

  Get_Location As Int

  Get_Mimetype As Int

  Get_Number_Tracks As Int

  Get_Title As Int

  Get_Writter As Int

  Get_Year As Int

  Initialize (EventName As String)

  IsPlaying As Boolean

  Pause

  Play

  PlayMusicFromAsset (FileName As String, type As Int) As String

  PlayMusicFromFile (FileName As String, type As Int) As String

  PlayRingtone (type As Int)

  Position As Int

  Release

  setSetVolume (Left As Float, Right As Float)

  Stop

  Type_Alarm As Int

  Type_All As Int

  Type_Notification As Int

  Type_Ringtone As Int

  Version As Double [read only]

Members description:

ConvertTimeToMinuts As String
Give you the real length in MM:SS
Example:
Sub Process_Globals
Dim timer1 As Timer
Dim mp As ICOSMusicPlayer
End Sub

Sub Globals
Dim label1 As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
timer1.Initialize("timer1",1000)
timer1.Enabled=True
mp.Initialize
mp.PlayMusicFromFile("sdcard/media/1.mp3",0,True)
End Sub

Sub Activity_Resume
If mp.IsPlaying Then
mp.Play
timer1.Enabled = True
timer1_tick
End If
End Sub

Sub timer1_Tick
If mp.IsPlaying Then
Label1.text="Position: " & mp.ConvertTimeToMinuts & " - " & ConvertTimeToSeconds ( "Position: 3:28 - 0:00" )
End If
End Sub
ConvertTimeToSeconds As String
Give you the real length in MM:SS
Example:
Sub Process_Globals
Dim timer1 As Timer
Dim mp As ICOSMusicPlayer
End Sub

Sub Globals
Dim label1 As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
timer1.Initialize("timer1",1000)
timer1.Enabled=True
mp.Initialize
mp.PlayMusicFromFile("sdcard/media/1.mp3",0,True)
End Sub

Sub Activity_Resume
If mp.IsPlaying Then
mp.Play
timer1.Enabled = True
timer1_tick
End If
End Sub

Sub timer1_Tick
If mp.IsPlaying Then
Label1.text="Position: " & mp.ConvertTimeToMinuts & " - " & ConvertTimeToSeconds ( "Position: 3:28 - 0:00" )
End If
End Sub
Duration As Int [read only]
Return the total value of the loaded media in milliSeconds
Get_Album_Artist As Int
Get_Album_Title As Int
Get_Artist_Name As Int
Get_Author_Name As Int
Get_Bitrate As Int
Get_Cd_Track_Number As Int
Get_Compilation As Int
Get_Composer_Name As Int
Get_Date As Int
Get_Disc_Number As Int
Get_Duration As Int
Get_Genre As Int
Get_Location As Int
Get_Mimetype As Int
Get_Number_Tracks As Int
Get_Title As Int
Get_Writter As Int
Get_Year As Int
Initialize (EventName As String)
Initialize the Object.
You Should Initialize Before Load Any Sounds.
Example:
Dim mp as ICOSMusicPlayer
mp.Initialize("mp")
IsPlaying As Boolean
Return true if ICOSMusicPlayer is currently playig
Pause
Pause the current playback.
You can resume it from the current position
at any time by calling mp.Play
Play
Play or resume the media you loaded before
PlayMusicFromAsset (FileName As String, type As Int) As String
Load any media file and Play.
Example:
Dim Label1 as Label
Label1.Text = mp.PlayMusicFromFile("sdcard/media/somefile.mp3",mp.Get_Title)
or
mp.PlayMusicFromFile("somefile.mp3",0,True)
type is any information about any media file, type 0 = null.
PlayMusicFromFile (FileName As String, type As Int) As String
Load any media file and Play.
Example:
Dim Label1 as Label
Label1.Text = mp.PlayMusicFromFile("sdcard/media/somefile.mp3",mp.Get_Title)
or
mp.PlayMusicFromFile("sdcard/media/somefile.mp3",0,True)
type is any information about any media file, type 0 = null.
PlayRingtone (type As Int)
TYPE_RINGTONE
TYPE_NOTIFICATION
TYPE_ALARM
TYPE_ALL
Example:
mp.PlayRingtone(mp.Type_Ringtone)
Position As Int
Get Or Set The Current Position In MilliSeconds
Release
Release all resources
Allocated by ICOSMusicPlayer
setSetVolume (Left As Float, Right As Float)
Set the volume for each channell.
The value should be between 0 to 100.
Example:
mp.SetVolume(100,100)
Stop
Stop Playing.
You must load the media before to Play it again
Type_Alarm As Int
Type_All As Int
Type_Notification As Int
Type_Ringtone As Int
Version As Double [read only]
Return the version of this library

ICOSPhone


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Permissions:

android.permission.ACCESS_NETWORK_STATE
android.permission.ACCESS_LOCATION
android.permission.ACCESS_GPS
android.permission.ACCESS_ASSISTED_GPS
android.permission.ACCESS_CELL_ID
android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_CHECKIN_PROPERTIES
android.permission.ACCESS_LOCATION_EXTRA_COMMANDS
android.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_WIFI_STATE
android.permission.BLUETOOTH_ADMIN
android.permission.BLUETOOTH
android.permission.BOOT_COMPLETED
android.permission.CALL_PHONE
android.permission.CALL_PRIVILEGED
android.permission.CAMERA
android.permission.CHANGE_WIFI_STATE
android.permission.FLASHLIGHT
android.permission-group.HARDWARE_CONTROLS
android.permission.HARDWARE_TEST
android.permission.INTERNET
android.permission.MODIFY_PHONE_STATE
android.permission.PROCESS_OUTGOING_CALLS
android.permission.READ_PHONE_STATE
android.permission.RECEIVE_SMS
android.permission.READ_SMS
android.permission.RECEIVE_BOOT_COMPLETED
android.permission.SEND_SMS
android.permission.SET_WALLPAPER
android.permission.UPDATE_DEVICE_STATS
android.permission.WAKE_LOCK
android.permission.WRITE_SETTINGS
android.permission.WRITE_SECURE_SETTINGS
android.permission.WRITE_SMS

Events:

None

Members:


  AccessWiFiState As String [read only]

  AvailMemory As String [read only]

  BluetoothOnOff (BTooth As android.graphics.Bitmap)

  BlueToothSerial As String [read only]

  Brightness As Float [write only]

  Celsius As String

  DeviceModel As String [read only]

  Farenheit As String

  GetDisplayMetricsHeight As Int

  GetDisplayMetricsWidth As Int

  GPSOnOff (Gps As android.graphics.Bitmap)

  Initialize (EventName As String)

  IPAddress As String [read only]

  LedOnOff (LedOn As android.graphics.Bitmap, LedOff As android.graphics.Bitmap)

  Level As Float

  MacAddres As String [read only]

  MakeCall (Call As android.graphics.Bitmap)

  NetworkOperatorName As String [read only]

  OpenGpsSetting

  OpenWiFiSettings

  OSVersion As String [read only]

  SimCardNumber As String [read only]

  StartCamera

  TotalMemory As String [read only]

  UsedMemory As String [read only]

  Version As Double [read only]

  WiFiOnOff (WiFiOn As android.graphics.Bitmap, WiFiOff As android.graphics.Bitmap)

Members description:

AccessWiFiState As String [read only]
Example:
Dim ph As ICOSPhone
ph.AccessWiFiState
return the AccessWiFiState
AvailMemory As String [read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone

Sub Button1_Click
label1.Text=ph.AvailMemory
End Sub
Return Avail Memory
BluetoothOnOff (BTooth As android.graphics.Bitmap)
Examples:
Dim Button1 As Button
Dim ph As ICOSPhone

Sub Button1_Click
ph.EnableDisableBluetooth
End Sub
Enable or Disable BlueTooth
BlueToothSerial As String [read only]
Example:
Dim ph As ICOSPhone
ph.BlueToothSerial
If the Bluetooth is on w'll return the serial
Brightness As Float [write only]
Example:
Dim ph As ICOSPhone
ph.Brightness
W'll set the Brightness of your screen
Celsius As String
Example:
Dim ph As ICOSPhone
dim Label1 As Label
Label1.Text=ph.TempCelsius
Return the degrees in Celsius of your Battery
DeviceModel As String [read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone

Sub Button1_Click
label1.Text=ph.DeviceModel
End Sub
Display the model of your device
Farenheit As String
Example:
Dim ph As ICOSPhone
dim Label1 As Label
Label1.Text=ph.TempFarenheit
Return the degrees in Farenheit of your Battery
GetDisplayMetricsHeight As Int
Example:
Dim ph As ICOSPhone
ph.GetDisplayHeight
return the DisplayHeight in pixel (ex. 1024)
GetDisplayMetricsWidth As Int
Example:
Dim ph As ICOSPhone
ph.GetDisplayWidth
return the Display Width in pixel (ex. 600)
GPSOnOff (Gps As android.graphics.Bitmap)
Example:
Dim ph As ICOSPhone
ph.GPSOnOff
W'll start GPS On or Off
Initialize (EventName As String)
Initialize the Object.
Example:
Dim ph As ICOSPhone
ph.Initialize("ph")
IPAddress As String [read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone

Sub Button1_Click
label1.Text=ph.IPAddress
End Sub
Display your IP-Address
LedOnOff (LedOn As android.graphics.Bitmap, LedOff As android.graphics.Bitmap)
Example:
Dim ph As ICOSPhone
ph.LedOnOff
Flash Mode On

This W'll turn Flash Mode ON or OFF if is supported.
Level As Float
Example:
Dim ph As ICOSPhone
Dim Pb As ProgressBar
Dim Button1 As Button

Sub Button1_Click
pb.Progress=Level
End Sub
Return the amount of level of your Battery
MacAddres As String [read only]
Example:
Dim ph As ICOSPhone
ph.MacAddres
return the MacAddres
MakeCall (Call As android.graphics.Bitmap)
Examples:
Dim Button1 As Button
Dim ph As ICOSPhone

Sub Button1_Click
ph.MakeCall
End Sub
NetworkOperatorName As String [read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone

Sub Button1_Click
label1.Text=ph.NetworkOperatorName
End Sub
Display the name of your NetworkOperator
OpenGpsSetting
Examples:
Dim Button1 As Button
Dim ph As ICOSPhone

Sub Button1_Click
ph.OpenGpsSetting
End Sub
Open Gps Setting
OpenWiFiSettings
Examples:
Dim Button1 As Button
Dim ph As ICOSPhone

Sub Button1_Click
ph.OpenWifiSettings
End Sub
Open WiFi Settings
OSVersion As String [read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone

Sub Button1_Click
label1.Text=ph.OSVersion
End Sub
Display OSVersion of your device
SimCardNumber As String [read only]
Example:
Dim ph As ICOSPhone
ph.SimCardNumber
return the SimCardNumber
StartCamera
Examples:
Dim Button1 As Button
Dim ph As ICOSPhone

Sub Button1_Click
ph.StartCamera
End Sub
Start On the Camera
TotalMemory As String [read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone

Sub Button1_Click
label1.Text=ph.TotalMemory
End Sub
Return Total Memory
UsedMemory As String [read only]
Examples:
Dim Button1 As Button
Dim Label1 As Label
Dim ph As ICOSPhone

Sub Button1_Click
label1.Text=ph.UsedMemory
End Sub
Return Used Memory
Version As Double [read only]
Return The Version Of this Library
WiFiOnOff (WiFiOn As android.graphics.Bitmap, WiFiOff As android.graphics.Bitmap)
Examples:
Dim Button1 As Button
Dim ph As ICOSPhone

Sub Button1_Click
ph.EnableDisableWiFi
End Sub
Enable / Disable your WIFI

ICOSRotateAnimation


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

animationend

Members:


  AutoRepeat

  AutoReverse

  InfinityRotateCentre (EventName As String, RotateDegrees As Float, Duration As Long)

  InfinityRotateCentreReverse (EventName As String, RotateDegrees As Float, Duration As Long)

  IsInitialized As Boolean

  Rotate (EventName As String, FromDegrees As Float, ToDegrees As Float, Duration As Long)

  RotateCentre (EventName As String, RotateDegrees As Float, Duration As Long)

  RotateCentreReverse (EventName As String, RotateDegrees As Float, Duration As Long)

  RotateScaleCenterIn (EventName As String, Duration As Long)

  RotateScaleCenterOut (EventName As String, Duration As Long)

  RotateSlideFromBottom (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)

  RotateSlideFromLeft (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)

  RotateSlideFromRight (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)

  RotateSlideFromTop (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)

  RotateSlideToBottom (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)

  RotateSlideToLeft (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)

  RotateSlideToRight (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)

  RotateSlideToTop (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)

  StartAnim (view As android.view.View)

  StartAnimAtTime As Long [write only]

  StopAnin (view As android.view.View)

  Version As Double [read only]

Members description:

AutoRepeat
Set repeat infinity automatically
AutoReverse
Set reverse automatically
InfinityRotateCentre (EventName As String, RotateDegrees As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.InfinityRotateCentre("anim",360,2)
anim.StartAnim(ImageView1)
End Sub
InfinityRotateCentreReverse (EventName As String, RotateDegrees As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.InfinityRotateCentreReverse("anim",360,2)
anim.StartAnim(ImageView1)
End Sub
IsInitialized As Boolean
Rotate (EventName As String, FromDegrees As Float, ToDegrees As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.Rotate("anim",0,360,2)
anim.StartAnim(ImageView1)
End Sub
RotateCentre (EventName As String, RotateDegrees As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.RotateCentre("anim",360,2)
anim.StartAnim(ImageView1)
End Sub
RotateCentreReverse (EventName As String, RotateDegrees As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.RotateCentreReverse("anim",360,2)
anim.StartAnim(ImageView1)
End Sub
RotateScaleCenterIn (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.RotateScaleCentreIn("anim",2)
anim.StartAnim(ImageView1)
End Sub
RotateScaleCenterOut (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.RotateScaleCentreOut("anim",360,2)
anim.StartAnim(ImageView1)
End Sub
RotateSlideFromBottom (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.RotateSlideFromBottom("anim",360,600,2)
anim.StartAnim(ImageView1)
End Sub
RotateSlideFromLeft (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.RotateSlideFromLeft("anim",360,600,2)
anim.StartAnim(ImageView1)
End Sub
RotateSlideFromRight (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.RotateSlideFromRight("anim",360,600,2)
anim.StartAnim(ImageView1)
End Sub
RotateSlideFromTop (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.RotateSlideFromTop("anim",360,600,2)
anim.StartAnim(ImageView1)
End Sub
RotateSlideToBottom (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.RotateSlideToBottom("anim",360,600,2)
anim.StartAnim(ImageView1)
End Sub
RotateSlideToLeft (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.RotateSlideToLeft("anim",360,600,2)
anim.StartAnim(ImageView1)
End Sub
RotateSlideToRight (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.RotateSlideToRight("anim",360,600,2)
anim.StartAnim(ImageView1)
End Sub
RotateSlideToTop (EventName As String, RotateDegrees As Float, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.RotateSlideToTop("anim",360,600,2)
anim.StartAnim(ImageView1)
End Sub
StartAnim (view As android.view.View)
anim.StartAnim
StartAnimAtTime As Long [write only]
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.StartAnimAtTime=5000 The Animation Will start after 5 seconds
anim.FadeOut(2)
anim.StartAnim(ImageView1)
End Sub
StopAnin (view As android.view.View)
Stop the animation
Version As Double [read only]
Return the version of this library

ICOSScaleAnimation


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

animationend

Members:


  AutoRepeat

  AutoReverse

  IsInitialized As Boolean

  ScaleCenterIn (EventName As String, Duration As Long)

  ScaleCenterOut (EventName As String, Duration As Long)

  ScaleFromBottom (EventName As String, Duration As Long)

  ScaleFromBottomToTopBack (EventName As String, Duration As Long)

  ScaleFromCenterToLeftRight (EventName As String, Duration As Long)

  ScaleFromCenterToLeftRightBack (EventName As String, Duration As Long)

  ScaleFromCenterToTopBottom (EventName As String, Duration As Long)

  ScaleFromCenterToTopBottomBack (EventName As String, Duration As Long)

  ScaleFromLeft (EventName As String, Duration As Long)

  ScaleFromLeftRightToCenter (EventName As String, Duration As Long)

  ScaleFromLeftToRightBack (EventName As String, Duration As Long)

  ScaleFromRight (EventName As String, Duration As Long)

  ScaleFromRightToLeftBack (EventName As String, Duration As Long)

  ScaleFromTop (EventName As String, Duration As Long)

  ScaleFromTopBottomToCenter (EventName As String, Duration As Long)

  ScaleFromTopToBottomBack (EventName As String, Duration As Long)

  ScaleToBottom (EventName As String, Duration As Long)

  ScaleToLeft (EventName As String, Duration As Long)

  ScaleToRight (EventName As String, Duration As Long)

  ScaleToTop (EventName As String, Duration As Long)

  StartAnim (view As android.view.View)

  StartAnimAtTime As Long [write only]

  StopAnin (view As android.view.View)

  Version As Double [read only]

Members description:

AutoRepeat
Set repeat infinity automatically
AutoReverse
Set reverse automatically
IsInitialized As Boolean
ScaleCenterIn (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleCenterIn("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleCenterOut (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleCenterOut("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromBottom (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromBottom("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromBottomToTopBack (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromBottomToTopBack("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromCenterToLeftRight (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromCenterToLeftRight("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromCenterToLeftRightBack (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromCenterToLeftRightBack("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromCenterToTopBottom (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromCenterToTopBottom("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromCenterToTopBottomBack (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromCenterToTopBottomBack("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromLeft (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromLeft("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromLeftRightToCenter (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromLeftRightToCenter("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromLeftToRightBack (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromLeftToRightBack("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromRight (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromRight("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromRightToLeftBack (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromRightToLeftBack("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromTop (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromTop("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromTopBottomToCenter (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromTopBottomToCenter("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleFromTopToBottomBack (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleFromTopToBottomBack("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleToBottom (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleToBottom("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleToLeft (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleToLeft("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleToRight (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleToRight("anim",2000)
anim.StartAnim(ImageView1)
End Sub
ScaleToTop (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.ScaleToTop("anim",2000)
anim.StartAnim(ImageView1)
End Sub
StartAnim (view As android.view.View)
anim.StartAnim -- ( Not for titlebar )
StartAnimAtTime As Long [write only]
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim b1 As Button

Sub b1_Click
anim.StartAnimAtTime=5000 The Animation Will start after 5 seconds
anim.FadeOut(2000)
anim.StartAnim(ImageView1)
End Sub
StopAnin (view As android.view.View)
Stop the animation
Version As Double [read only]
Return the version of this library

ICOSSeekBar


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

ValueChanged(Value As Int , FromUser As Boolean)
VolumeChanged(Volume As Int , FromUser As Boolean)

Members:


  BringToFront

  CursorBitmap As android.graphics.Bitmap [write only]

  Enable As Boolean [write only]

  Enabled As Boolean [read only]

  InitializeProgressBar (EventName As String)

  InitializeSeekBar (EventName As String)

  InitializeVolumeBar (EventName As String)

  IsInitialized As Boolean

  Max As Int

  ProgressBarMax As Int [write only]

  ProgressBarValue As Int [write only]

  ProgressBitmap As android.graphics.Bitmap [write only]

  RemoveView

  SendToBack

  StreamVolume As Int

  Value As Int

  Version As Double [read only]

  Visible As Boolean

Members description:

BringToFront
Send this view to front
CursorBitmap As android.graphics.Bitmap [write only]
This is part of InitializeSeekBar or InitializeVolumeBar ( You'll find it in ICOSSeekBar )

Example:

ics.CursorBitmap=LoadBitmap(File.DirAssets,"somefile.png")
Enable As Boolean [write only]
Enabled As Boolean [read only]
InitializeProgressBar (EventName As String)
Example:
Dim ics As ICOSSeekBar

Sub Activity_Create(FirstTime As Boolean)
ics.InitializeProgressBar("ics")
Activity.AddView(ics,115,500,350,35)
End Sub
InitializeSeekBar (EventName As String)
Example:
Dim ics As ICOSSeekBar

Sub Activity_Create(FirstTime As Boolean)
ics.InitializeSeekBar("ics")
ics.ProgressBitmap=LoadBitmap(File.DirAssets,"somefile.png")
ics.CursorBitmap=LoadBitmap(File.DirAssets,"somefile.png")
Activity.AddView(ics,115,500,350,35)
End Sub
InitializeVolumeBar (EventName As String)
You have to use this with MediaPlayer or ICOSMusicPlayer

Example:
Dim ics As ICOSSeekBar

Sub Activity_Create(FirstTime As Boolean)
ics.InitializeVolumeBar("ics")
ics.ProgressBitmap=LoadBitmap(File.DirAssets,"somefile.png")
ics.CursorBitmap=LoadBitmap(File.DirAssets,"somefile.png")
Activity.AddView(ics,115,500,350,35)
End Sub
IsInitialized As Boolean
Max As Int
This is part of InitializeSeekBar or InitializeVolumeBar ( You'll find it in ICOSSeekBar )

return Max Value
ProgressBarMax As Int [write only]
This is part of InitializeProgressBar ( You'll find it in ICOSSeekBar )

Set the Max value of ProgressBarMax
ProgressBarValue As Int [write only]
This is part of InitializeProgressBar ( You'll find it in ICOSSeekBar)

Set the value of ProgressBarValue
ProgressBitmap As android.graphics.Bitmap [write only]
This is part of InitializeSeekBar or InitializeVolumeBar ( You'll find it in ICOSSeekBar )

Example:

ics.ProgressBitmap=LoadBitmap(File.DirAssets,"somefile.png")
RemoveView
Remove this View
SendToBack
Send this view to back
StreamVolume As Int
return the value of Volume ( the value is between 0 to 15)
Value As Int
This is part of InitializeSeekBar or InitializeVolumeBar ( You'll find it in ICOSSeekBar )

return progress Value
Version As Double [read only]
Return the version of this library
Visible As Boolean

ICOSSlideAnimation


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

animationend

Members:


  AutoRepeat

  AutoReverse

  IsInitialized As Boolean

  SlideFadeFromBottom (EventName As String, SlideValue As Float, Duration As Long)

  SlideFadeFromLeft (EventName As String, SlideValue As Float, Duration As Long)

  SlideFadeFromRight (EventName As String, SlideValue As Float, Duration As Long)

  SlideFadeFromTop (EventName As String, SlideValue As Float, Duration As Long)

  SlideFadeToBottom (EventName As String, SlideValue As Float, Duration As Long)

  SlideFadeToLeft (EventName As String, SlideValue As Float, Duration As Long)

  SlideFadeToRight (EventName As String, SlideValue As Float, Duration As Long)

  SlideFadeToTop (EventName As String, SlideValue As Float, Duration As Long)

  SlideFromBottom (EventName As String, SlideValue As Float, Duration As Long)

  SlideFromBottomToTop (EventName As String, SlideValue As Float, Duration As Long)

  SlideFromLeft (EventName As String, SlideValue As Float, Duration As Long)

  SlideFromLeftToRight (EventName As String, SlideValue As Float, Duration As Long)

  SlideFromRight (EventName As String, SlideValue As Float, Duration As Long)

  SlideFromRightToLeft (EventName As String, SlideValue As Float, Duration As Long)

  SlideFromTop (EventName As String, SlideValue As Float, Duration As Long)

  SlideFromTopToBottom (EventName As String, SlideValue As Float, Duration As Long)

  SlideToBottom (EventName As String, SlideValue As Float, Duration As Long)

  SlideToLeft (EventName As String, SlideValue As Float, Duration As Long)

  SlideToRight (EventName As String, SlideValue As Float, Duration As Long)

  SlideToTop (EventName As String, SlideValue As Float, Duration As Long)

  StartAnim (view As android.view.View)

  StartAnimAtTime As Long [write only]

  StopAnin (view As android.view.View)

  Version As Double [read only]

Members description:

AutoRepeat
Set repeat infinity automatically
AutoReverse
Set reverse automatically
IsInitialized As Boolean
SlideFadeFromBottom (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFadeFromBottom("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFadeFromLeft (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFadeFromLeft("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFadeFromRight (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFadeFromRight("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFadeFromTop (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFadeFromTop("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFadeToBottom (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFadeToBottom("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFadeToLeft (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFadeToLeft("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFadeToRight (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFadeToRight("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFadeToTop (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFadeToTop("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFromBottom (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFromBottom("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFromBottomToTop (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFromBottomToTop("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFromLeft (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFromLeft("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFromLeftToRight (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFromLeftToRight("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFromRight (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFromRightToLeft(600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFromRightToLeft (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFromRightToLeft("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFromTop (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFromTop("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideFromTopToBottom (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideFromTopToBottom("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideToBottom (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideToBottom("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideToLeft (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideToLeft(600,2)
anim.StartAnim(ImageView1)
End Sub
SlideToRight (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideToRight("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
SlideToTop (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.SlideToTop("anim",600,2)
anim.StartAnim(ImageView1)
End Sub
StartAnim (view As android.view.View)
anim.StartAnim -- ( Not for titlebar )
StartAnimAtTime As Long [write only]
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.StartAnimAtTime=5 The Animation Will start after 5 seconds
anim.FadeOut(2)
anim.StartAnim(ImageView1)
End Sub
StopAnin (view As android.view.View)
Stop the animation
Version As Double [read only]
Return the version of this library

ICOSStrings


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  CalculatesVAT (Value As Int, Vat As Int) As Int

  ExtractVAT (Value As Int, Vat As Float) As Double

  Mid (text As String, value1 As Int, value2 As Int) As String

  StrLeft (text As String, value As Int) As String

  StrRight (text As String, value As Int) As String

  Version As Double [read only]

Members description:

CalculatesVAT (Value As Int, Vat As Int) As Int
Dim s As ICOSString
Dim label1 As Label
Example:
Label1.text=s.CalculatesVAT(100,15)
Result is 115
ExtractVAT (Value As Int, Vat As Float) As Double
Dim s As ICOSString
Dim label1 As Label
Example:
Label1.text=s.ExtractVAT(100,15)
Result is 86.9565
Mid (text As String, value1 As Int, value2 As Int) As String
Dim s As ICOSString
Dim label1 As Label
Example:
Label1.text=s.Mid$("Hello Basic4Android" , 7 , 13)
"BasicAndroid"
StrLeft (text As String, value As Int) As String
Dim s As ICOSString
Dim label1 As Label
Example:
Label1.text=s.StrLeft$("Hello Basic4Android" , 5)
"Hello"
StrRight (text As String, value As Int) As String
Dim s As ICOSString
Dim label1 As Label
Example:
Label1.text=s.StrRight$("Hello Basic4Android" , 7)
"Android"
Version As Double [read only]
Return the version of this library

ICOSTextToSpeech


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Permissions:

android.permission.READ_SMS
android.permission.RECEIVE_SMS
android.permission.WRITE_SMS
android.permission.ACCESS_LOCATION_EXTRA_COMMANDS
jp.co.c_lis.permission.CHANGE_LOCALE

Events:

None

Members:


  AddSpeaking (txt2 As String)

  ChangeDefaultLanguage

  GetEngineByPackageName As String

  GoLanguageSettings

  InitializeTTs (EventName As String, DefLang As String)

  IsInitialized As Boolean

  PitchToSpeak (mPitch As Float)

  RateToSpeak (mRate As Float)

  ReadAndSpeakSMS

  SetEngineByPackageName (EnginePackageName As String)

  SetLanguageToSpeak

  ShutDown

  Speaking (txt As String)

  StopToSpeak

  Version As Double [read only]

  WriteAndSpeakText

Members description:

AddSpeaking (txt2 As String)
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button

Sub b1_Click
tts.AddSpeaking="bla bla bla"
End Sub

Add the second text to speaking
ChangeDefaultLanguage
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button

Sub b1_Click
tts.ChangeDefaultLanguage
End Sub

Programmatically change the default language of your phone with that choice yourself
GetEngineByPackageName As String
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button

Sub b1_Click
tts.GetEngineByPackageName
End Sub

Return the current Engine Package Name
GoLanguageSettings
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button

Sub b1_Click
tts.LanguageSettings
End Sub

Goes into the language setting to check if it has changed the language you've chosen
InitializeTTs (EventName As String, DefLang As String)
Examples:
Dim tts As ICOSTextToSpeech

tts.InitializeTextToSpeech("tts")
IsInitialized As Boolean
PitchToSpeak (mPitch As Float)
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button

Sub b1_Click
tts.PitchToSpeak=3.5
End Sub

Set the pitch for the speaking
RateToSpeak (mRate As Float)
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button

Sub b1_Click
tts.RateToSpeak=3.5
End Sub

Set the rate for the speaking
ReadAndSpeakSMS
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button

Sub b1_Click
tts.ReadAndSpeakSMS
End Sub
SetEngineByPackageName (EnginePackageName As String)
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button

Sub b1_Click
tts.SetEngineByPackageName="com.ivona.tts"
End Sub

Set Engine PackageName
SetLanguageToSpeak
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button

Sub b1_Click
tts.SetLanguageToSpeak
End Sub

Set the language
ShutDown
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button

Sub b1_Click
tts.ShutDown
End Sub

Release the ICOSTextToSpeech.
Speaking (txt As String)
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button

Sub b1_Click
tts.Speaking="bla bla bla"
End Sub

Speak the first text
StopToSpeak
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button

Sub b1_Click
tts.StopToSpeak
End Sub

Stop the ICOSTextToSpeech.
Version As Double [read only]
Return the version of this library
WriteAndSpeakText
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button

Sub b1_Click
tts.WriteAndSpeakText
End Sub

ICOSTitleBarAnimation


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

animationend

Members:


  AutoRepeat

  AutoReverse

  FadeInTitleBar (EventName As String, Duration As Long)

  FadeOutTitleBar (EventName As String, Duration As Long)

  FLIP_HORIZONTAL As Int

  FLIP_VERTICAL As Int

  Flip3DTitleBar (EventName As String, Degrees As Float, Duration As Long, Direction As Int)

  InfinityFadeTitleBar (EventName As String, Duration As Long)

  InfinitySlideReverseTitleBar (EventName As String, SlideValue As Float, Duration As Long)

  InfinitySlideTitleBar (EventName As String, SlideValue As Float, Duration As Long)

  IsInitialized As Boolean

  ScaleTitleBarFromCentreToLeftRight (EventName As String, Duration As Long)

  ScaleTitleBarFromLeftRightToCentre (EventName As String, Duration As Long)

  ScaleTitleBarToLeft (EventName As String, Duration As Long)

  ScaleTitleBarToRight (EventName As String, Duration As Long)

  SlideTitleBarFromLeftToRight (EventName As String, SlideValue As Float, Duration As Long)

  SlideTitleBarFromRightToLeft (EventName As String, SlideValue As Float, Duration As Long)

  StartAnimAtTime As Long [write only]

  StartAnimTitleBar

  StopAnimTitleBar

  Version As Double [read only]

Members description:

AutoRepeat
Set repeat infinity automatically
AutoReverse
Set reverse automatically
FadeInTitleBar (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.FadeInTitleBar("anim",2)
anim.StartAnimTitleBar
End Sub
FadeOutTitleBar (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.FadeOutTitleBar("anim",2)
anim.StartAnimTitleBar
End Sub
FLIP_HORIZONTAL As Int
FLIP_VERTICAL As Int
Flip3DTitleBar (EventName As String, Degrees As Float, Duration As Long, Direction As Int)
Direction -> FLIP_HORIZONTAL = 1
Direction -> FLIP_VERTICAL = 2
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.Flip3DTitleBar("anim",ImageView1,180,3,anim.FLIP_HORIZONTAL)
anim.StartAnim(ImageView1)
End Sub
InfinityFadeTitleBar (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.InfiniteFadeTitleBar("anim",2)
anim.StartAnimTitleBar
End Sub
InfinitySlideReverseTitleBar (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim Button1 As Button

Sub b1_Click
anim.InfinitySlideReverseTitleBar("anim",600,2)
anim.StartAnimTitleBar
End Sub
InfinitySlideTitleBar (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim Button1 As Button

Sub b1_Click
anim.SlideInfinityTitleBar("anim",600,2)
anim.StartAnimTitleBar
End Sub
IsInitialized As Boolean
ScaleTitleBarFromCentreToLeftRight (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim Button1 As Button

Sub b1_Click
anim.SaleTitleBarFromCentreToLeftRight("anim",2)
anim.StartAnimTitleBar
End Sub
ScaleTitleBarFromLeftRightToCentre (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim Button1 As Button

Sub b1_Click
anim.ScaleTitleBarFromLeftRightToCentre("anim",2)
anim.StartAnimTitleBar
End Sub
ScaleTitleBarToLeft (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim Button1 As Button

Sub b1_Click
anim.SaleTitleBarToLeft("anim",2)
anim.StartAnimTitleBar
End Sub
ScaleTitleBarToRight (EventName As String, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim Button1 As Button

Sub b1_Click
anim.SaleTitleBarToRight("anim",2)
anim.StartAnimTitleBar
End Sub
SlideTitleBarFromLeftToRight (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim Button1 As Button

Sub b1_Click
anim.SlideTitleBarFromLeftToRight("anim",600,2)
anim.StartAnimTitleBar
End Sub
SlideTitleBarFromRightToLeft (EventName As String, SlideValue As Float, Duration As Long)
Example:
Dim anim As ICOSAnimation
Dim Button1 As Button

Sub b1_Click
anim.SlideTitleBarFromRightToLeft("anim",600,2)
anim.StartAnimTitleBar
End Sub
StartAnimAtTime As Long [write only]
Example:
Dim anim As ICOSAnimation
Dim ImageView1 As ImageView
Dim Button1 As Button

Sub b1_Click
anim.StartAnimAtTime=5000 The Animation Will start after 5 seconds
anim.FadeOut(2)
anim.StartAnim(ImageView1)
End Sub
StartAnimTitleBar
anim.StartAnimTitleBar
StopAnimTitleBar
Stop the animation
Version As Double [read only]
Return the version of this library
Top