This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 9 - Pages: 1 - Last Post: 4 Aug 24, 12:02 Last Post By: RobM
RobM

Posts: 3,845
Registered: 4-Aug-2006
New "UsageCounters" API
Posted: 12 Apr 24, 20:27
 
  Click to reply to this thread Reply
I've searched the API for 'UsageCounters' and can't find any entry. Where is it?

For any new API it would be helpful for a link to the appropriate page to be included in beta version notes.
davidekholm

Posts: 3,486
Registered: 18-Oct-2002
Re: New "UsageCounters" API
Posted: 13 Apr 24, 14:58   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
I'll update the javadocs soon. This API is mainly for internal use. You can open the system console and issue UsageCounters.print() to list all counters. UsageCounters.increase("key") will add 1 to an entry and UsageCounters.reset("key") will reset it.
RobM

Posts: 3,845
Registered: 4-Aug-2006
Re: New "UsageCounters" API
Posted: 13 Apr 24, 15:06   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Thanks. I was thinking it might be something that, if agreed by users, could be used to provide stats on feature usage for skin developers. So it’s not something likely to be of use to third party developers.
davidekholm

Posts: 3,486
Registered: 18-Oct-2002
Re: New "UsageCounters" API
Posted: 14 Apr 24, 16:14   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Yes, the purpose why I added it was to regulate if/when to show hints (speech bubbles or notifications) of the use of various functions.
RobM

Posts: 3,845
Registered: 4-Aug-2006
Re: New "UsageCounters" API
Posted: 2 Aug 24, 15:59   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Still no API. But more importantly is there, or can there, be a call to list all counters with a value of 0 (or null/empty)? Users are still having issues stopping the green bubbles and asking them to print usage counters only reports values of 1 or more.

Related last post https://jalbum.net/forum/thread.jspa?threadID=59817&start=0&tstart=0
davidekholm

Posts: 3,486
Registered: 18-Oct-2002
Re: New "UsageCounters" API
Posted: 3 Aug 24, 22:44   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
Still no API. But more importantly is there, or can there, be a call to list all counters with a value of 0 (or null/empty)? Users are still having issues stopping the green bubbles and asking them to print usage counters only reports values of 1 or more.

Related last post https://jalbum.net/forum/thread.jspa?threadID=59817&start=0&tstart=0


The UsageCounters keeps no records of items having 0 as usage count so it can't know that
JeffTucker

Posts: 8,225
Registered: 31-Jan-2006
Re: New "UsageCounters" API
Posted: 3 Aug 24, 22:53   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
The UsageCounters keeps no records of items having 0 as usage count so it can't know that

I was just about to chime in on that subject. In noodling around, I discovered that it's extensible. In other words, I can tell it that I've used the makeEverythingPerfect setting, and that counter then shows up in the printout. In short, it doesn't have a predefined set of counters, so it can't know which ones are zero!
RobM

Posts: 3,845
Registered: 4-Aug-2006
Re: New "UsageCounters" API
Posted: 3 Aug 24, 23:39   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
When you get back (from your trip) perhaps you could update the API, at least we would then know what counters exists.
davidekholm

Posts: 3,486
Registered: 18-Oct-2002
Re: New "UsageCounters" API
Posted: 4 Aug 24, 11:51   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Here's a pretty exhaustive list:

publish album=133
show settings=156
new project dialog presented=113
Detach inbox=1
preview=88
title edited=1
files dropped=9
album info presented=12
add from phone dialog opened=8
open empty editor=3
show preferences=144
folder dropped=19
receiving files from phone=5
context help=3
searchSupport=266
make album=590
open image directory=9
edit skin files=18
add file method dialog shown=40
close signin clicked=3
publish aborted=1
start=1666
open publish window=102
close signin confirmed=3
close project=586
XMPInjector opened=3
albumobjects move=36
projectGroupsExpanded=786
bar=4
publish started=53
processed video=18
skin selected=4456
add file method dialog cancelled=2
file dropped=4
publish cancelled=3
add file method dialog ok=38
signout=8
processed video thumbnail=14
searchBar=1
open project gallery=73
signin presented=19
foo=3
open project=2007
preview album=19
bg signin=1092
open edit view=69
caption edited=6
add button clicked=24
open output directory=20
show skin settings=29
resolution=1666
signin=1108
RobM

Posts: 3,845
Registered: 4-Aug-2006
Re: New "UsageCounters" API
Posted: 4 Aug 24, 12:02   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Thanks. I see your list includes the searchBar which both Jeff and I no longer see in our own lists. I’ve assumed that, rapid switching of setting windows showing a green bubble, has been removed.

But enough of this, go enjoy your break.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums